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
4
votes
0 answers

error Failed to get dependency config while installing messaging module of react-native-firebase

I am trying to add the notification capabilities to my react-native app. Seems like react-native-firebase is the preferred way to go. But I don't want to install the complete module just for messaging. According to this:…
honor
  • 7,378
  • 10
  • 48
  • 76
4
votes
1 answer

I have problem with firebase.messaging.requestPermission() always result in exception whatever I choose 'allow' or 'Not Allow'

react-native firebase request permissions always result in an exception. I am trying to give the user the option to allow notifications in my react-native app. So, when the user install my react-native app an alert will be shown and he can choose…
4
votes
3 answers

Make push notifications appear as pop up when app is on background with firebase

I am setting up push notifications with my react native app to android users using Firebase Cloud Messaging. So far I have followed mostly this tutorial. I managed to make push notifications to show on lock screen, and deal with them when the app is…
4
votes
1 answer

How can you add a custom image to a notification in iOS with react-native-firebase

I want to use the data payload in a firebase cloud messaging to present an image in the notification. The image is specified as an url to a website where the image is hosted. It appears as what I want to do is to add the image as an attachment, see…
Axenu
  • 116
  • 1
  • 5
4
votes
2 answers

How to prevent FCM from converting nested json objects to string in Data Message notifications in react-native

I'm using firebase in my react-native project (with typescript), I set up all thing correctly and it works fine with data messages like below: { "to": "fcm-token", "data": { "field1": "value1", "field2": "value1", "field3":…
4
votes
1 answer

Firestore Document get request promise doesn't resolve. How do I solve this problem?

Summary I am using react-native-firebase in my project, and I am running pure react-native (No Expo). However, on putting a get request to any document on Firestore never gives a response. That is, in a try-catch block, neither does it resolve, nor…
4
votes
0 answers

RN app result in "Native module cannot be null" after updating Expokit from 28 to 32

I am following the documents expokit 32 AppDelegate to upgrade expo v28 to v32 and its detached branch. I finally got everything working on my non-detached branch on my RN app. Now I am trying to upgrade the detached branch but the following error…
idler1515
  • 150
  • 3
  • 11
4
votes
0 answers

React Native Firebase Phone Auth - phoneAuthSnapshot has NULL values for verificationId and code

I am trying to use react-native-firebase to do Phone Auth. Firebase is correctly set-up. I can get SMS code back for some phone numbers. I am using verifyPhoneNumber method. My code looks like this: firebase .auth() …
4
votes
1 answer

firebase: admin.auth().updateUser() causes auth/user-token-expired

I successfully auth with phone-number. (I can check firebase.auth.currentUser that I'm logged in.) Then I'm calling my firebase admin route which have admin.auth().updateUser(uid, somevalues) to set user displayName and email. After this step…
rendom
  • 3,417
  • 6
  • 38
  • 49
4
votes
1 answer

React Native: Handle silent push notification

Im using react-native-firebase for handling push notification for our React Native app (for android and iOS). I noticed that there is only have 1 callback for a push notification that is received when the app is running (foreground or background)…
iadcialim24
  • 3,817
  • 5
  • 21
  • 32
4
votes
4 answers

Cannot parse Firebase url. Please use https://.firebaseio.com

While i click on the login button i get this error : [19:49:11] [2018-12-25T20:49:57.389Z] @firebase/database:, FIREBASE FATAL ERROR: Cannot parse Firebase url. Please use https://.firebaseio.com -…
4
votes
0 answers

Unable to create Dynamic Short link with React-native-firebase

I'm catching an error with code: "links/failure" const link = new firebase.links.DynamicLink( "LINK", "firebaseDomainLink" ).android .setPackageName("packagename") .ios.setBundleId("bundleID"); firebase …
4
votes
1 answer

firebase web or react-native-firebase

I'm building a React Native app with Firebase for backend, and I couldn't find good information to help me decide if I should go with the official firebase web library, or react-native-firebase. This article from Firebase says "With the updates in…
4
votes
0 answers

Deeplink doesn't work on react-native ios when app is already open

I just detached from expo and started integrating react-native-firebase. The most important feature for me is firebase dynamic link. After following their documentation here, i can open the app with dynamic link, and get the url using…
4
votes
3 answers

Deep links in react-native-firebase notifications

I am using react-native-firebase with messaging to deliver notifications to my app with cloud functions, with admin.messaging().send(message), very similar to here:…