[Error: [firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.]
I encountered this sudden error with the same code which worked fine yesterday
This error occurred when I tried to get data from firebase firestore
using these versions
"@react-native-firebase/app": "^14.7.0",
"@react-native-firebase/auth": "^14.7.0",
"@react-native-firebase/database": "^14.7.0",
"@react-native-firebase/firestore": "^14.7.0",
"@react-native-firebase/messaging": "^14.7.0",
"@react-native-firebase/storage": "^14.7.0",
"react": "18.0.0",
"react-native": "0.68.0",
2
Answers
The problem is with Android Emulator v 31.3.10 Turning off wifi in the emulator and turning on its data connection works for me. Check these for further details.
Firebase doesn't work on Android Studio Emulator
I fixed permanently by following these steps.
Its issue with emulator version.
https://github.com/firebase/flutterfire/issues/9607#issuecomment-1263065653