[英]How to send push notifications
I need to add the ability to send push notifications out to users who have our app installed (yet to go to market). 我需要添加将推送通知发送给已安装我们的应用程序的用户(尚未上市)的功能。
I guess I will need to install a phonegap plugin that will look for updates on our server (or could be triggered from our server) but I'm struggling to find a good approach. 我想我需要安装一个phonegap插件,该插件可以在我们的服务器上查找更新(或可以从我们的服务器触发),但是我一直在努力寻找一个好的方法。
I have seen this: 我已经看到了:
https://github.com/saileshmittal/phonegap-system-notification-plugin/tree/master/android-statusbar-notificaion https://github.com/saileshmittal/phonegap-system-notification-plugin/tree/master/android-statusbar-notificaion
It allows phonegap to send a notification, but I don't know how I could send a remote message to the script to trigger a message. 它允许phonegap发送通知,但是我不知道如何向脚本发送远程消息以触发消息。
不建议使用C2DM,而使用GCM(Google云消息传递)来为Android App实施推送通知。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.