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
Describe the bug
I have discovered this bug report from firebase crashlytics. I've recently upgraded my app to use firebase messaging 8.0.0-dev.14. this fixed a lot of the crashes I once had on my app but introduced a couple of new ones. One of them is a class cast exception on the RemoteMessage object that was introduced in this new firebase version. I'm not sure how it is happening, but from looking through the function logs it is mostly all from when people try entering the app from a notification. This works fine every time for me and for most of my users, but I'm up to 22 crashes on my new version and the number keeps rising, so for some reason it is affecting some users, but not the vast majority.
Additional context
here are the crashlytics logs
RUNTIME LOGS
Fatal Exception: java.lang.RuntimeException: Unable to start receiver io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Object[]
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4005)
at android.app.ActivityThread.access$2300(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2050)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
CLASS EXCEPTION LOGS
Caused by java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Object[]
at androidx.collection.SimpleArrayMap.allocArrays(SimpleArrayMap.java:60)
at androidx.collection.SimpleArrayMap.put(SimpleArrayMap.java:58)
at com.google.firebase.messaging.Constants$MessagePayloadKeys.extractDeveloperDefinedPayload(Constants.java:75)
at com.google.firebase.messaging.RemoteMessage.getData(RemoteMessage.java:6)
at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingUtils.remoteMessageToMap(FlutterFirebaseMessagingUtils.java:85)
at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingStore.storeFirebaseMessage(FlutterFirebaseMessagingStore.java:2)
at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingReceiver.onReceive(FlutterFirebaseMessagingReceiver.java:48)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3996)
at android.app.ActivityThread.access$2300(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2050)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Flutter doctor
Run flutter doctor and paste the output below:
flutter doctor
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.52.1)
[✓] Connected device (1 available)
• No issues found!
Bug report
Describe the bug
I have discovered this bug report from firebase crashlytics. I've recently upgraded my app to use firebase messaging 8.0.0-dev.14. this fixed a lot of the crashes I once had on my app but introduced a couple of new ones. One of them is a class cast exception on the RemoteMessage object that was introduced in this new firebase version. I'm not sure how it is happening, but from looking through the function logs it is mostly all from when people try entering the app from a notification. This works fine every time for me and for most of my users, but I'm up to 22 crashes on my new version and the number keeps rising, so for some reason it is affecting some users, but not the vast majority.
Additional context
here are the crashlytics logs
Flutter doctor
Run
flutter doctor
and paste the output below:flutter doctor
Flutter dependencies
flutter pub deps -- --style=compact
The text was updated successfully, but these errors were encountered: