【发布时间】:2017-06-10 20:06:44
【问题描述】:
我真的很难为我的 Ionic 应用程序添加推送通知支持。我当前的问题与documentation 有关,它指出我需要添加一个cordova push 插件(我有),然后添加以下事件处理程序:
this.push.on('notification', function (data) {
// do something with the push data
// then call finish to let the OS know we are done
push.finish(function () {
console.log("processing of push data is finished");
}, function () {
console.log("something went wrong with push.finish for ID = " + data.additionalData.notId)
}, data.additionalData.notId);
});
但是,我得到一个 on 属性未找到错误。我该如何解决这个问题?
【问题讨论】:
标签: ios ionic-framework ionic2