iOS 端集成jpush-phonegap-plugin插件,收到一条通知,接受通知的方法却执行2两次

ali
2018-01-26 07:58 1.3k 0

JPush版本:3.2.13
推送一条消息,iOS 端收到一条消息,但是document.addEventListener("jpush.receiveNotification", onReceiveNotification, false)这个方法 却执行了2次 这是为啥

2个回答

热门排序
  • 问题总结:iOS 10 中通过后台推送原生会同时回调下列接口: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDiction 展示全部
  • 你是不是发了 background remote 消息? https://docs.jiguang.cn/jpush/client/iOS/ios_new_fetures/#ios-7-background-remote-notificat 展示全部