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
0
votes
1 answer

Android FCM token without colon (:)

I'm building a VoIP app, and I'd like to use FCM to be notified of incoming calls. The FCM token generated on Android contains a InstanceId prefix, followed by a colon (:). However, due to an implementation detail, I am unable to use string that…
0
votes
0 answers

How to connect react native saga to react native firebase

I have these sagas, But I am getting unsubscribe everytime on channel and failure action. What is the reason? I am using React Native Firebase and RNFirestore function firebaseChannel(userId) { const ref = database .collection("chat_rooms") …
0
votes
0 answers

iOS remote notification display issue for both when app in foreground and background in React Native

I am trying to show the remote notification for ios/iphone irrespective of app state running or killed. I've used react-native-firebase library for this. Case 1: Key is "notification" and App is in Background (Killed) So when app is in background…
0
votes
1 answer

Getting could not invode RNFirebaseFirestore.documentSet null No virtual method Set

Please find the attached screenshot for exact error. I'm getting this error when I'm trying to set the data to firestore. Following is the code import firebase from 'react-native-firebase'; export function initializeFirestore() { firebase …
0
votes
1 answer

Disable sound for local notification

I'm trying to display a local notification without a sound using react-native-firebase, is that possible? I have tried playing around with the AndroidNotification class, but couldn't find a way to do this. const notification = new…
0
votes
0 answers

react-native-firebase doesn't showing notification

I'm using react-native-firebase in my application. I followed this tutorial and followed all steps in both firebase console and in my App.js but don't get any notification. I got firebase token for my Simulator and iPad too. My code import React,…
0
votes
1 answer

How can I debug JS remotely when using React Native Firebase

So I have a React Native app based on react-native-firebase-starter that I'd like to debug using better tools than just console.log output via react-native log-android. Debugger breakpoints, object inspection etc. For a standard React Native app,…
BaronVonKaneHoffen
  • 1,902
  • 1
  • 21
  • 29
0
votes
1 answer

Error "undefined is not an object (evaluating 'RNGestureHandlerModule.State')" when using react-native-firebase with react-navigation

I met the error below when I using react-native-firebase with react-navigation(and also react-native-gesture-handler) undefined is not an object (evaluating 'RNGestureHandlerModule.State') I followed the guide of…
0
votes
1 answer

What is preferred using Pod or not in React Native?

I get confuse either to use or not to use pod. There are usually procedure to add modules for both procedures i.e using pod and using npm however using pod steps seems quick. But is there any problems using it with React Native or not. Need help…
Redmen Ishab
  • 2,199
  • 18
  • 22
0
votes
2 answers

How to update the UI on firebase realtime database "push" in offline mode

I'm using react-native-firebase in my app. The problem i'm facing is how to handle the UI updates when user tries to push data when offline. If the user is online we can use the on() method to get realtime updates but what to do when they are…
0
votes
0 answers

Slow signInAnonymously() and auth().currentUser.getIdToken()

I'm using firebase to sign in anonymously in a react-native app. It takes up to 20s to respond to the firebase.auth().signInAnonymouslyAndRetrieveData() and to firebase.auth().currentUser.getIdToken() after the token has expired. There are no cloud…
0
votes
2 answers

How to perform transactions in firestore when user is offline?

I'm creating a multi page application where i need to create and store transactions even when the users are offline. How do i achieve this using firestore ? Also i need some idea on how to persist the data received from the firestore locally.
addu
  • 71
  • 1
  • 9
0
votes
1 answer

React Native Android app crashes after installing react-native-firebase

I have a react-native project in which I installed react-native-firebase and followed the instructions in the documentation, but when I tried to run the app I got a mismatch version in Gradle so I updated Gradle to 4.6, now the build is successful,…
0
votes
2 answers

firebase firestore crashes app after .get() method

I'm implementing react-native-firebase 5.2.0 with react-native 0.57.0. I've made all the configuration asked in the documentation, but, when I'm going to perform a query with firebase firestore, the app crashes! While debugging I can see that the…
0
votes
1 answer

Firestore query, slow or returning undefined

I am trying to retrieve 2 queries and do a calculation between the two. But it is rather slow or returning undefined. Sometimes it shows me the values, but that is usually after I refresh the app. The first where, gives the amount of documents where…