【发布时间】:2016-02-27 16:05:14
【问题描述】:
我是新来的:D
我有下一个代码:
alert('hi');
$cordovaPush.register(config).then(function (result) {
alert('push' + result);
}, function (err) {
alert('error);
});
alert('bye');
当我转到 Ionic View 时,我会收到警报:“hi”和“bye”,但从来没有“push”或“error”...
我安装:
ionic plugin add https://github.com/phonegap-build/PushPlugin
然后我将 ng-cordova.js 和 PushNotification.js 放入索引中...
发生了什么?
谢谢!
【问题讨论】:
标签: cordova ionic-framework push