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

How to get documents with array containing a specific string in Firestore with React-Native

I am just getting started with Firebase and am trying to determine how to best structure my Firestore database. What I want is to find all documents from an 'events' collection where 'participants' (which is an array field on each event document…
0
votes
1 answer

can't detect notification when app closed

so I've been trying to do this app but for some reason, after I can't seem to be able to detect notification from the firebase consol when the app is closed (not in the background or frontground those work fine). so here are some of the relevant…
julia
  • 139
  • 3
  • 11
0
votes
0 answers

RNfirebase installation issue with firebase-functions 11.6

I keep getting the following error when I am trying to run the build after completing all the RNFIREBASE steps to install Firebase for my react-native project. RN version: 0.55.3 Using appcenter for builds The build was working fine on appcenter…
Harshet
  • 1
  • 2
0
votes
0 answers

RNFirebase core module was not found natively on iOS

AppDelegate.m #import "Firebase.h" #import "AppDelegate.h" #import #import @implementation AppDelegate - (BOOL)application:(UIApplication *)application…
Fallen
  • 4,435
  • 2
  • 26
  • 46
0
votes
1 answer

How to convert an anonymous account to a permanent account

can someone help me how to convert an anonymous account (signInAnonymouslyAndRetrieveData) to a permanent account ? I have tried this: firebase.auth().currentUser.linkAndRetrieveDataWithCredential(credential).then(function(usercred) { var user =…
0
votes
3 answers

React native with firebase (push) notifications

So I have registration/login handled on my side using Laravel. I tried adding React-native-firebase so after login I could subscribe to topic like notifications/:userId so I would get notifications only for that user as currently every user is…
0
votes
2 answers

JSON format between Firebase and React Native Flatlist

This is what data are stored in Firebase Realtime Database "Users" : { "Joe" : { "name" : "xxx", "email" : "xxx" }, "Matt" : { "name" : "xxx", "email" : "xxx" } } This is what data need in React Native Flatlist Users : [ { …
ggDeGreat
  • 1,098
  • 1
  • 17
  • 33
0
votes
2 answers

Navigate after tapping on Push Notification alert in the tray

I am using react-native-firebase on a project to implement push notifications. One request came in to make the user navigate to a specific screen whenever one taps on the push notif alert. react-navigation is being used for the screen navigation. I…
0
votes
1 answer

Can not show notification on real device using react native firebase

I have an app that using react native and firebase for push notification. This is my notification that send to client: 'data' : { 'title' : ' ' + this.currentUser.email + ' send you a message !', 'text' : text, …
0
votes
1 answer

Using Flow - How to use DocumentRef to check type of DataSnapshot fields?

I created a function to iterate through all fields of a DataSnapshot. Here are my imports import type { DataSnapshot, DocumentRef, DocumentSnapshot, } from 'react-native-firebase'; the function is below: getRefData = (data: typeof…
0
votes
2 answers

react-native-firebase. getInitialNotification gets null

When click on noification from the tray getInitialNotification is triggered but notificationOpen param gets null value. I am sending notification via firebase console. If my app is in foreground I receive my notification data that I am sending. But…
Mariam
  • 3
  • 1
  • 4
0
votes
0 answers

firestore where always returns total docs

I am creating an app where people can read messages and in firestore, once they have read a message it adds the user's uid (who read it) to the specific doc, like so: hasread userId -> uid What I am trying to do, is count the amount of docs…
0
votes
1 answer

How can I load data from the database while backgrounded?

If I get a push notification on iOS, I want to pull some related data from the Firebase database in the background, so my user can read their articles on the train. I'm getting the appropriate onDisplayNotification event, and it's reliably…
deworde
  • 2,679
  • 5
  • 32
  • 60
0
votes
1 answer

Storing data on Firebase to be queried later

We have an application that will store data on Firebase (database) that will then be queried later. What is the correct format to store the data in. The example data will be completedGames. They will have data such…
StuartM
  • 6,743
  • 18
  • 84
  • 160
0
votes
0 answers

react native - GCM : broadcast intent callback: result=CANCELLED

I am using react-native-firebase and I'm having issues receiving push notifications when the app is killed or not started yet. When my app is closed and I receive a notification, I'm getting this error in my android logcat: W GCM : broadcast intent…
Ketan Malhotra
  • 1,255
  • 3
  • 16
  • 44