PhoneGap中文网
标题:
极光推送jpush.receiveNotification函数离线只能收到一条消息
[打印本页]
作者:
jbxp
时间:
2016-1-26 09:48
标题:
极光推送jpush.receiveNotification函数离线只能收到一条消息
极光推送 cordova 插件 这个函数在app离线的时候,如果收到5条通知,点图标进入APP只能收到最后一条
document.addEventListener("jpush.receiveNotification", onReceiveNotification, false);
function onReceiveNotification(){
var alertContent
if(device.platform == "Android"){
alertContent=window.plugins.jPushPlugin.receiveNotification.alert;
}else{
alertContent = event.aps.alert;
}
alert("open Notificaiton:"+alertContent);
}
如何解决
欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/)
Powered by Discuz! X3.2