尝试使用这个插件。适用于android和Ios。
<plugin spec=" https://github.com/acianti/cordova-plugin-local-notifications.git" />
我使用了以下插件: https://github.com/katzer/cordova-plugin-local-notifications
虽然我通过Phonegap应用程序测试了插件但它没有工作但是在构建android apk之后它工作得很好。