jbxp 发表于 2016-1-26 09:48:07

极光推送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);
}

如何解决

页: [1]
查看完整版本: 极光推送jpush.receiveNotification函数离线只能收到一条消息