Closed forchello closed 1 week ago
Experiencing the same with following set of dependencies:
"@react-native-firebase/analytics": "20.1.0",
"@react-native-firebase/app": "20.1.0",
"@react-native-firebase/crashlytics": "20.1.0",
"@react-native-firebase/in-app-messaging": "20.1.0",
"@react-native-firebase/messaging": "20.1.0",
"@react-native-firebase/remote-config": "20.1.0",
Stack trace:
Fatal Exception: java.lang.RuntimeException: Unable to start receiver io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3194)
at android.app.ActivityThread.-wrap17()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1672)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
We also got this issue.
"@react-native-firebase/analytics": "^20.1.0",
"@react-native-firebase/app": "^20.1.0",
"@react-native-firebase/crashlytics": "^20.1.0",
"@react-native-firebase/messaging": "^20.1.0",
"react-native": "0.74.3",
OS version: android 8.1.0 Model: Nexus 5X
Hello, are you still experiencing that using the latest version?
Same issue. Related to Google Nexus 5X 8.1?
Fatal Exception: java.lang.RuntimeException
Unable to start receiver io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
"@react-native-firebase/analytics": "^18.7.3",
"@react-native-firebase/app": "^18.7.3",
"@react-native-firebase/crashlytics": "^18.7.3",
"@react-native-firebase/messaging": "^18.7.3",
"react-native": "0.74.3",
Device
Brand:Google
Model:Nexus 5X
Orientation:Portrait
RAM free: 1.3 GB
Disk free: 355.48 MB
Operating System
Version:Android 8.1.0
Orientation:Portrait
Rooted: No
--SORRY FOR TAGGING @/silent--
Hello, I'm seeing this error as well but so far only with Android 8 + Google device (Nexus 5x)
It seems like intent.getExtras()
returns null
, as to why it's happening now-- not entirely sure lol
We could add a check before we do this I guess, but still it's kinda weird https://github.com/invertase/react-native-firebase/blame/c2c457608c865f6d25e4b9b6689cbc00721de194/packages/messaging/android/src/main/java/io/invertase/firebase/messaging/ReactNativeFirebaseMessagingReceiver.java#L25
rn: 0.73.8 android: 8.1 device: Nexus 5X
deps: "@react-native-firebase/app": "^19.2.2", "@react-native-firebase/messaging": "19.2.2",
More Details:
Fatal Exception: java.lang.RuntimeException Unable to start receiver io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference