处理jpush-phonegap-plugin
的Android
厂商通道没有触发jpush.receiveNotification或者jpush.openNotification问题
依赖jpush-phonegap-plugin ,因此需要先安装jpush-phonegap-plugin
,并配置好极光厂商通道。
使用方法如下
首先安装
cordova plugin add https://github.com/fugary/cordova-plugin-jpush-custom.git
然后使用,需要在JPush.init()
等JPush
相关代码之后
if (window.JPushCustomPlugin) {
window.JPushCustomPlugin.checkReceiveMessage()
}
服务端SDK发送消息, 需要添加uri_activity
属性,即:setUriActivity("com.xxx.MainActivity")
: