科尔多瓦推送通知插件抛出错误

cordova push notification plugin throws error

关于将 PushNotification 插件添加到我的 cordova 项目中(即 cordova 插件添加 https://github.com/phonegap-build/PushPlugin.git) is throwing error. I read that there are some issues with plugin. So how can I implement the push notifications with cordova. I found this link https://www.npmjs.com/package/cordova-plugin-pushnotification-parsepushnotification 但是没有方法可以在收到通知时触发。如何实现它。

看看Telerik Push Notifications Plugin, it is based on the Phonegap Push Plugin.You can find the documentation here.

编辑

既然你想使用cordova插件本身,你可以试试这个解决方法 安装相同插件的旧版本并检查它是否适合你

为此,您可以导航至此link,下载源代码,然后通过命令

在本地安装它
cordova plugin add *Location of the Locally downloaded plugin*