我应该使用哪个本地通知插件进行phonegap构建?

时间:2014-03-23 07:01:14

标签: cordova phonegap-plugins localnotification

似乎有四种不同的第三方插件可以完成在phonegap构建中列出的本地通知:

https://github.com/GotCakes/Phonegap-LocalNotification/

https://github.com/javamrright/cordova-plugin-local-notifications/

https://github.com/simplec-dev/LocalNotification/

https://github.com/katzer/cordova-plugin-local-notifications/

(来自https://build.phonegap.com/plugins

我一直在使用四个中的最后一个(de.appplant.cordova.plugin.local-通知),但我很想知道(1)其他包是否是首选解决方案和(2)为什么phonegap / cordova中有四个独立的项目来完成同样的任务......?

2 个答案:

答案 0 :(得分:10)

这似乎是最活跃的(检查贡献者/分叉等......): https://github.com/katzer/cordova-plugin-local-notifications

我自己测试过(现在是Android)并且效果很好。

此扩展程序有不同的版本/包,因为在大多数情况下,Cordova插件的开发是一个开源事件。每个开发人员都有自己的想法和最佳实践 - 知道插件应该如何工作。

答案 1 :(得分:2)

大家好,在上一个问题Local notification in phonegap 3.3.0中,您会在我的一条评论中找到文档和示例代码,我还提供了一个beep.mp3文件,您可以立即下载并使用(不是在原始仓库中提供https://github.com/katzer/cordova-plugin-local-notifications

希望它有所帮助!