device.platform == "Android") document.addEventListener('push-notification//set push notification callback before we initialize the plugin
document.addEventListener('push-notification
它还会触发一个push-notification事件,其中该事件具有指南中所示的notification属性,但它被设置为null。这很令人困惑,因为我还没有从控制面板发送任何推送通知。我用来测试的代码: $document.on('push-notification', function(evt) {
var n = evt.originalEvent.notification