OneSignal / OneSignal-Xamarin-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Xamarin app with OneSignal. https://onesignal.com
Other
105 stars 50 forks source link

com.onesignal.GcmBroadcastReceiver" #153

Closed NVentimiglia closed 5 years ago

NVentimiglia commented 5 years ago

Description: Crash Report : ClassNotFoundException: Didn't find class "com.onesignal.GcmBroadcastReceiver"

Investigating dev build crash report.

Environment

Stack Trace

dalvik.system.BaseDexClassLoader.findClass
BaseDexClassLoader.java, line 56
java.lang.ClassNotFoundException: Didn't find class "com.onesignal.GcmBroadcastReceiver" on path: DexPathList[[zip file base.apk"]]

dalvik.system.BaseDexClassLoader.findClass BaseDexClassLoader.java:56
java.lang.ClassLoader.loadClass ClassLoader.java:380
java.lang.ClassLoader.loadClass ClassLoader.java:312
android.app.ActivityThread.handleReceiver ActivityThread.java:3091
android.app.ActivityThread.-wrap18 ActivityThread.java
android.app.ActivityThread$H.handleMessage ActivityThread.java:1612
android.os.Handler.dispatchMessage Handler.java:102
android.os.Looper.loop Looper.java:154
android.app.ActivityThread.main ActivityThread.java:6313
java.lang.reflect.Method.invoke Method.java
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:872
com.android.internal.os.ZygoteInit.main ZygoteInit.java:762
lltwist commented 5 years ago

the same

jkasten2 commented 5 years ago

@NVentimiglia @man0rei com.onesignal.GcmBroadcastReceiver is include directly in this SDK so it is odd that it wasn't found.

Can you share the following details?

  1. What versions of Android do you see this on?
  2. When do you see this error? Only when sending a notification?
  3. Share your "Android Build" settings under options.
    • If you have "Enable Multi-Dex" checked can you try unchecking this?
  4. Please try reproducing this issue in a new project and sharing it here.
NVentimiglia commented 5 years ago
  1. LG Fiesta 2 LTE vs 7
  2. This is an app center crash report, during runtime
  3. We can not uncheck multidex, we need it.

image

jkasten2 commented 5 years ago

@NVentimiglia Thanks for the details. You noted this is a "dev build crash report.", are you able to reproduce the issue on your test devices? If so, consistently or only sometimes?

Any crashes in production? If so how many affected users?

NVentimiglia commented 5 years ago

This is an app center crash report. I do not have reproduction steps. From the report, it feels like a linker issue. "Didn't find class "com.onesignal.GcmBroadcastReceiver""

rgomezp commented 5 years ago

@NVentimiglia , Could you please answer jkasten2's questions above?

rgomezp commented 5 years ago

Closing due to inactivity