2016-04-10 5 views
0

Ich habe Onesignal als Push-Benachrichtigung in einer meiner Android-Anwendung implementiert. Benachrichtigung funktioniert gut, wenn es funktionierendes Internet während der Benachrichtigung Zeit gesendet hat, aber wenn das Gerät keine Internetverbindung hat und wir eine Benachrichtigung senden, als wenn der Benutzer das Internet im Gerät aktiviert und eine Benachrichtigung erhält, dann wird die Anwendung abgestürzt ... Was ist das Problem?OneSignal Push-Anwendung wird abgestürzt

Hinweis: Fehlerprotokoll

angebracht

Dank

04-10 23:20:12.288: E/OneSignal(16528): \t at com.onesignal.BadgeCountUpdater.update(BadgeCountUpdater.java:44) 
 
04-10 23:20:12.288: E/OneSignal(16528): \t at com.onesignal.NotificationBundleProcessor.saveNotification(NotificationBundleProcessor.java:111) 
 
04-10 23:20:12.288: E/OneSignal(16528): \t at com.onesignal.NotificationBundleProcessor.Process(NotificationBundleProcessor.java:77) 
 
04-10 23:20:12.288: E/OneSignal(16528): \t at com.onesignal.GcmIntentService.onHandleIntent(GcmIntentService.java:66) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.shortcutbadger.ShortcutBadger.initBadger(ShortcutBadger.java:92) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.shortcutbadger.ShortcutBadger.applyCountOrThrow(ShortcutBadger.java:65) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.shortcutbadger.ShortcutBadger.applyCount(ShortcutBadger.java:50) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.BadgeCountUpdater.updateCount(BadgeCountUpdater.java:71) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.BadgeCountUpdater.update(BadgeCountUpdater.java:65) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.NotificationBundleProcessor.saveNotification(NotificationBundleProcessor.java:111) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.NotificationBundleProcessor.Process(NotificationBundleProcessor.java:77) 
 
04-10 23:20:12.288: E/AndroidRuntime(16528): \t at com.onesignal.GcmIntentService.onHandleIntent(GcmIntentService.java:66)

Antwort

0

Stellen Sie sicher, version 2.3.0 oder höher des OneSignal SDK verwenden, enthält diese Version ein Update für ein Context null Fehler mit Abzeichen.