Pushwoosh / pushwoosh-appcelerator-titanium

Other
33 stars 16 forks source link

SDK 9.2.2 Didn't find class "com.google.firebase.iid.FirebaseInstanceIdReceiver" #78

Closed drunnells closed 3 years ago

drunnells commented 3 years ago

I am having trouble receiving a push notification in an Android app with Appcelerator Titanium SDK 9.2.2 GA using v5.20.1 of the Pushwoosh Titanium module. The module works great in the same app with SDK 8.3.1 with no changes. When receiving a push with the app built with SDK 9.2.2 I receive the below in the console:

[ERROR] :  TiExceptionHandler: (main) [114065,148400] Unable to instantiate receiver com.google.firebase.iid.FirebaseInstanceIdReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.iid.FirebaseInstanceIdReceiver" on path: DexPathList[[zip file "/data/app/com.dustinrunnells.appname-HZceNjDrWd6FXA_sRW-N5Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.dustinrunnells.appname-HZceNjDrWd6FXA_sRW-N5Q==/lib/arm64, /data/app/com.dustinrunnells.appname-HZceNjDrWd6FXA_sRW-N5Q==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
[ERROR] :  TiExceptionHandler:
[ERROR] :  TiExceptionHandler:     dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
[ERROR] :  TiExceptionHandler:     java.lang.ClassLoader.loadClass(ClassLoader.java:379)
[ERROR] :  TiExceptionHandler:     java.lang.ClassLoader.loadClass(ClassLoader.java:312)
[ERROR] :  TiExceptionHandler:     android.app.AppComponentFactory.instantiateReceiver(AppComponentFactory.java:84)
[ERROR] :  TiExceptionHandler:     androidx.core.app.CoreComponentFactory.instantiateReceiver(CoreComponentFactory.java:60)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.handleReceiver(ActivityThread.java:3482)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.access$1200(ActivityThread.java:200)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:1723)
[ERROR] :  TiExceptionHandler:     android.os.Handler.dispatchMessage(Handler.java:106)
[ERROR] :  TiExceptionHandler:     android.os.Looper.loop(Looper.java:210)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.main(ActivityThread.java:7124)
[ERROR] :  TiExceptionHandler:     java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:898)
wfhm commented 3 years ago

@drunnells,

checking it.

wfhm commented 3 years ago

@drunnels,

We are working on updating our module to support SDK 9.2.2 right now. This ticket is put on hold until the release (ETA is not more than 2 weeks).

wfhm commented 3 years ago

@drunnels,

The new version of the module is released, could you please try it and let us know if the issue persists?

drunnells commented 3 years ago

@wfhm I am now able to build my application with SDK 9.2.2GA and receive pushes on Android 11 with v6.0.0 of the module. Thank you!

I do receive a different error in the logs now regarding an SQL query at app start, but the Pushwoosh module does seem functional now. I will open a separate issue with the new error.