我已经在我的一个 android 应用程序中将 onesignal 实现为推送通知。如果在通知发送期间它有工作互联网,但如果设备没有互联网连接并且我们发送通知,则通知工作正常,而不是当用户在设备中启用互联网并收到通知而不是应用程序崩溃时......有什么问题?
注意:附加错误日志
谢谢
04-10 23:20:12.288: E/OneSignal(16528): at com.onesignal.BadgeCountUpdater.update(BadgeCountUpdater.java:44)
04-10 23:20:12.288: E/OneSignal(16528): at com.onesignal.NotificationBundleProcessor.saveNotification(NotificationBundleProcessor.java:111)
04-10 23:20:12.288: E/OneSignal(16528): at com.onesignal.NotificationBundleProcessor.Process(NotificationBundleProcessor.java:77)
04-10 23:20:12.288: E/OneSignal(16528): at com.onesignal.GcmIntentService.onHandleIntent(GcmIntentService.java:66)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.shortcutbadger.ShortcutBadger.initBadger(ShortcutBadger.java:92)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.shortcutbadger.ShortcutBadger.applyCountOrThrow(ShortcutBadger.java:65)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.shortcutbadger.ShortcutBadger.applyCount(ShortcutBadger.java:50)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.BadgeCountUpdater.updateCount(BadgeCountUpdater.java:71)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.BadgeCountUpdater.update(BadgeCountUpdater.java:65)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.NotificationBundleProcessor.saveNotification(NotificationBundleProcessor.java:111)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.NotificationBundleProcessor.Process(NotificationBundleProcessor.java:77)
04-10 23:20:12.288: E/AndroidRuntime(16528): at com.onesignal.GcmIntentService.onHandleIntent(GcmIntentService.java:66)