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

iOS background notification handler issue using @react-native-firebase/messaging

I am facing the issue when the app is in background or closed state. The notifications are shown in the notification center in all cases but the messaging().setBackgroundMessageHandler doesn't get called every time but only some times while checked…
4
votes
0 answers

Can You Use Firebase Analytics With Expo React Native Web App?

I have been reading all through the documentation and through all of the other StackOverflow posts and am still not entirely sure if a react native expo app can have firebase analytics included or not. I am not sure if I am supposed to use: import *…
4
votes
0 answers

Unable to see device and events log in DebugView

I'm trying to setup analytics with firebase on my react native app. I have tried mutiples solutions from different forum like StackOverflow or Github. Here's what I put in my code : import analytics from…
4
votes
1 answer

Error: firebase.admob() InterstitialAd.show() The requested InterstitialAd has not loaded and could not be shown

I'm using react-native-firebase / admob to use Adbmod in react native, and when I try to use Interstitial Ads on my first click it opens the ad, but from then on it returns this error: Error: firebase.admob () InterstitialAd.show () The requested…
4
votes
1 answer

How to set functions region for React Native Firebase

I have a react native app with react-native-firebase and I'm trying to run a callable https firebase function which is deployed to a custom region. I've read that firebase.app().functions("MY-REGION") so I tried the following: import { firebase }…
4
votes
0 answers

Firebase Cloud Messaging Notification coming with empty data

I'm using the FCM Legacy HTTP API to send notifications to my React-Native Apps. When I send notifications with the "data" block filled out, I see all the data on my app. When I just populate the "notification" block however the message is empty…
John P
  • 1,540
  • 2
  • 22
  • 34
4
votes
0 answers

onTokenRefresh is not fired in rnfirebase Library for React Native

this.onTokenRefreshListener = firebase .messaging() .onTokenRefresh(fcmToken => { // Process your token as required console.log("fcmToken onTokenRefresh", fcmToken); console.log("fcmToken onTokenRefresh client", client); // await…
4
votes
3 answers

@react-native-firebase/storage - get url after uploading an image

Im trying to find an efficient way to get the url of an image in firebase right after ive uploaded it. Id like to avoid writing a totally separate function to this....and instead Id like to include it in the promise chain. See code below import…
james murphy
  • 1,505
  • 5
  • 31
  • 57
4
votes
3 answers

React Native - upload image to Firebase using @react-native-firebase/storage - No Firebase App '[DEFAULT]' has been created

I am getting the following error when uploading an image to Firebase: Error: No Firebase App '[DEFAULT]' has been created - call firebase.initializeApp() Here is my code: App.js import * as Firebase from 'firebase'; componentDidMount() { …
4
votes
3 answers

Why react-native-gifted-chat not displaying time correctly from firebase timestamp?

I used react-native-gifted-chat in my app to add chat feature. Currently I am able to send and receive message from firebase properly. But, the problem is that react-native-gifted-chat always displays 12:00 AM of message send time. This is because…
4
votes
0 answers

React Native Firebase ios onNotification doesn't trigger

My project is importing 'react-native-firebase' and I'm trying sending test messages through firebase console using a device token. The method firebase.notifications().onNotification((notification)=>{}) triggers on android devices, but doesn't…
4
votes
1 answer

How do you get client-side firebase cloud messaging token into google cloud function?

I'm working towards implementing push notifications that appear on change to a firebase firestore document. I'm using the react-native-firebase module. My google cloud function listens for changes to the firestore and then sends messages via…
4
votes
3 answers

All React Native Firebase modules must be of the same version - can't use Auth

I installed RNF from starter kit provided by Invertase. I am using RNF app, database, analytics, auth. Everything worked fine until I needed the auth module. It throws an error on app startup (on Android, haven't tried iOS): …
Dmitri Borohhov
  • 1,513
  • 2
  • 17
  • 33
4
votes
2 answers

Task 'installDebug' not found in project ':app'

I get error on my react-native app while I am trying to execute following code react-native run-android --variant=release Starting a Gradle Daemon (subsequent builds will be faster) > Configure project :react-native-firebase react-native-firebase:…
Lee
  • 333
  • 3
  • 7
  • 19
4
votes
3 answers

Notifications are not showing while the app is in foreground

I am trying to send push notifications using react-native-firebase through firebase console when my app is closed or in the background, the notifications are received and shown as a pop-up but if my app is in the foreground the notifications are…