[🐛] 🔥 @react-native-firebase/messaging giving SERVICE_NOT_AVAILABLE error #8488
Labels
blocked: customer-response
platform: android
plugin: messaging
FCM only - ( messaging() ) - do not use for Notifications
type: bug
New bug report
Issue
I am using @react-native-firebase/messaging for push notifications, but getting this error when getting token FCM Error: NativeFirebaseError: [messaging/unknown] java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: SERVICE_NOT_AVAILABLE. It worked for a split second and returned toke on same emulator but then again started throwing this error, I have also added timer in case the messaging isn't available instantly but unfortunately this didn't fix the issue.
I am using following versions
I have also tried degrading to
I have added this in AndroidManifest.xml
I have added this in android/app/build.gradle
Also added this in android/build.gradle
classpath 'com.google.gms:google-services:4.4.2'
This is my react-native version
"react-native": "0.79.1",
I have tried on both real device and emulator but its not working.
Describe your issue here
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
iOS
Click To Expand
ios/Podfile
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:Firebase
module(s) you're using that has the issue:TypeScript
?Y
&5.0.4
The text was updated successfully, but these errors were encountered: