科尔多瓦推送通知 android

Cordova pushnotification android

我想实施 Android 推送通知。 我找到了这个插件,但我不知道如何 install/use 它: https://github.com/phonegap/phonegap-plugin-push

我是否只需要安装它(然后配置它)

或者是否需要其他插件(或文件)?

首先你应该访问: http://console.developers.google.com/

并获取发件人和 api 密钥。

更多信息关于 https://usergrid.apache.org/docs/push-notifications/tutorial.html

然后您应该添加一些代码,如插件 github 文档中记录的那样,设备准备好将设备提交给 google 服务。 当插件触发时它会响应一个设备 id ,您应该稍后使用它来识别设备以发送消息。 您可以使用 PushSharp for .net 平台来处理这个问题。

  • 我建议使用pushplugin 2.4版本,而不是最新版本。 它避免了一些不清楚的错误,例如:

    哦哦!