Questions tagged [react-native-firebase]

This tag is for the react-native-firebase npm package.

This tag is for the react-native-firebase npm package. React Native Firebase allows the use of the full firebase suite of modules whilst working with react native, it works by providing a javascript bridge to the native android and iOS firebase SDK's.

When using this tag it would be helpful to specify the following:

1. Application Target Platform(s):

2. Operating System:

3. React Native version:

4. RNFirebase Version:

5. Firebase Module:

1347 questions
15
votes
2 answers

How to combine Firestore orderBy desc with startAfter cursor

i am trying to query a list in firestore that should be sorted by a descending date property and make use of a startAfter cursor to paginate the results. As you can see in the snippets below, this is failing once i combine orderBy('date', 'desc')…
14
votes
4 answers

Could not reach Cloud Firestore backend - React native Firebase v9

I saw many questions on SO regarding this issue and none of them was answered (or the solution doesn't work), I don't know why. People are having this error continuously but no solution is being provided. And from past few days even I'm encountering…
14
votes
3 answers

how to catch error in firestore when no internet

I recently updated my app from firebase to firestore but stuck at offline persistance. I am using react-native-firebase to integrate firestore and disable its perisistance but still not getting any catch error when no internet. This is my code to…
13
votes
3 answers

Show notification on foreground react native firebase v6

I am using the latest react native version 0.62 and latest version of react-native-firebase i.e. v6. I am able to get the notification and it working fine on the background but its not displaying on foreground. Here is the screenshot: And here is…
13
votes
4 answers

Which react hook to use with firestore onsnapshot?

I use a lot of firestore snapshots in my react native application. I am also using React hooks. The code looks something like this: useEffect(() => { someFirestoreAPICall().onSnapshot(snapshot => { // When the component initially loads,…
13
votes
3 answers

Bring Android React Native App to Foreground On Receipt of Data Only Firebase Cloud Message

I am successfully using Firebase Cloud Messaging with react-native-firebase to send and receive data only messages between Android devices. When a device receives a message, if the app is in the background or has been killed I would like to bring…
13
votes
2 answers

The sms code has expired. Please re-send the verification code to try again

Whenever I tried to login with phone number using react-native-firebase sdk, I recieve OTP code through sms and when I submit the recieved code, an error is there saying:"The sms code has expired. Please re-send the verification code to try again."…
13
votes
10 answers

FB login - Firebase.Auth() Error: The supplied auth credential is malformed or has expired

I'm using react-native-fbsdk: 0.8.0, react-native-firebase: ^5.2.2, react-native: ^0.57.4 and Facebook Test User account. This happened so suddenly. Once I sign out from firebase and try to log in again with Facebook. Error: The supplied auth…
Kyo Kurosagi
  • 2,177
  • 1
  • 18
  • 18
13
votes
4 answers

Version conflict between gms:play-services-vision and firebase

I've installed both react-native-firebase and react-native-camera. The camera was fine when play-services -vision was stuck at 12.0.1, but I just ran into this error (Error updating property googleVisionBarcodeDetectorEnable) …
RedGiant
  • 4,444
  • 11
  • 59
  • 146
12
votes
4 answers

Can't compile React Native iOS app to run on physical device, issue with React Native Firebase

For some reason since recently, I cannot run my React Native app on a physical device from Xcode or even from the command line. I'm getting the following error: duplicate symbol '_md5_block_data_order' in: …
alexmngn
  • 9,107
  • 19
  • 70
  • 130
12
votes
1 answer

React Native Firebase error Thread 1 SIGABRT - iOS

Problem After following the tutorial for react-native-firebase, my app hangs after a successful build. The error I get in Xcode is: Thread 1: signal SIGABRT. I understand from other questions that this has something to do with connections, but I do…
11
votes
1 answer

messaging().onNotificationOpenedApp is never triggered, messaging().getInitialNotification() is triggered but remoteMessage is always null

I'm using react-native-firebase v6.4.0. I successfully registered a background handler with setBackgroundMessageHandler and everything works fine. Now I'm trying to handle notification tap when the app is in background/quit and I'm using…
11
votes
3 answers

Firebase Dynamic Links - Can't get Url in android after install app from play store

If I install the app when clicking the dynamic link. All of that information from dynamic should be still available when I open the app for the first time.How can I get that information? It is not working when I use this: getInitialLink() returns…
11
votes
2 answers

React Native Firebase Storage Upload fails with Unknown error

I am using react-native-firebase to work with our Firebase account for authentication, firestore and storage. Attempting to upload a photo to Storage is failing with an unknown error. Here is the code attempted: _pickImage = async () => { await…
11
votes
5 answers

You attempted to use a firebase module that's not installed on your android project by calling firebase.storage()

Im trying to use firebase storage on React Native using the react-native-firebase module and when y call firebase storage I get this error: You attempted to use a firebase module that's not installed on your android project by calling…
1
2
3
89 90