You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The latest (5.0.0) version of SDK crashes during initialization using OneSignal.initWithContext(Context, String) method
The attached crash log is extracted from my application
Steps :
Install Release 5.0.0 version
Initalize SDK using OneSignal.initWithContext(getRepository().getContext(),oneSignalId) in Application class
Observe crash
Process: com.simpletherapy.android.mhealth, PID: 18149
java.lang.RuntimeException: Unable to create application com.simpletherapy.android.SimpleTherapyApplication: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6955)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
at com.simpletherapy.android.SimpleTherapyApplication.onCreate(SimpleTherapyApplication.java:187)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6949)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
The text was updated successfully, but these errors were encountered:
The latest (5.0.0) version of SDK crashes during initialization using OneSignal.initWithContext(Context, String) method
The attached crash log is extracted from my application
Steps :
Process: com.simpletherapy.android.mhealth, PID: 18149
java.lang.RuntimeException: Unable to create application com.simpletherapy.android.SimpleTherapyApplication: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6955)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
Caused by: java.lang.NullPointerException: null cannot be cast to non-null type com.amazon.device.iap.PurchasingListener
at com.onesignal.core.internal.purchases.impl.TrackAmazonPurchase.start(TrackAmazonPurchase.kt:83)
at com.onesignal.core.internal.startup.StartupService.start(StartupService.kt:16)
at com.onesignal.internal.OneSignalImp.initWithContext(OneSignalImp.kt:247)
at com.onesignal.OneSignal.initWithContext(OneSignal.kt:126)
at com.simpletherapy.android.SimpleTherapyApplication.onCreate(SimpleTherapyApplication.java:187)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6949)
at android.app.ActivityThread.access$1300(ActivityThread.java:260)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1972)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7989)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:635)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1065)
The text was updated successfully, but these errors were encountered: