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

React Native build failed ios/Pods/Headers/Public/glog/glog/logging.h:509:1: note: namespace 'google' begins here namespace google

I want to make my app ready for Push Notification. There fore i use Expo Notifications with React-Native-Firebase (it is a bare workflow app). Mi error comes from the Podfile. For firebase i need to add use_frameworks! But than i get this…
5
votes
4 answers

Basic usage of @react-native-firebase/admob gives: "TypeError: (0, _admob.default) is not a function". Is it deprecated? or Why doesnt work?

Is @react-native-firebase/admob deprecated? or just.. Why it doesn't work? I am using @react-native-firebase/admob (https://rnfb-docs.netlify.app/admob/usage). Everything works fine before to use "admob()". When I add admob() to the code appears…
5
votes
1 answer

react-native firebase fcm setBackgroundMessageHandler not working

I am creating a function to store data through async-storage at FCM's setBackgroundMessageHandler event. I am using @react-native-firebase/messaging. SetBackgroundMessageHandler is not working. I followed the tutorial at…
5
votes
0 answers

React native firebase auth().useEmulator is undefined

I'm trying to use the new firebase authentication emulator on React Native (0.63.3) on an android studio emulator (Pixel 4 API 29). In the newest major update of react-native-firebase (V 10.0.0), support for this was added, and I can see both the…
5
votes
1 answer

Notifee android notitication icon not working

Notifee Notification icon not working in the notifee display notification notifee.displayNotification({ title: remoteMessage.notification.title, body: remoteMessage.notification.body, android: { channelId:…
Rover
  • 661
  • 2
  • 18
  • 39
5
votes
3 answers

Remove notification after a certain time in React Native (@react-native-firebase/messaging)

I have push notifications working in React Native using @react-native-firebase/messaging. I am using FCM on the backend, and it is currently showing the OS lock screen notifications on iOS and Android. I want to clear a given notification after a…
hamboy
  • 727
  • 2
  • 8
  • 21
5
votes
1 answer

React Native Firebase Push Notification is not working When App is open

I am using @react-native-firebase for handling push notification. Problem is that It is working when the App is in the background. If the App is in the foreground or open state, Push notification not working. Also, I am using notifee to create a…
Rahul dev
  • 1,267
  • 3
  • 18
  • 31
5
votes
1 answer

Can't update badge count when app has closed - react native iOS

we are using react native firebase version 6 messaging to handle push notification. From the remote notification content, we are not able to increment/ decrement the badge count on ios. So we are using push notification ios to set badge count. It is…
5
votes
2 answers

Should I build a local data layer/app state to maintain state in a React Native/Firestore App?

A main selling point of Firestore is the ability to use it as a online/offline source of truth. I'm using it in this way right now: updating the Firestore document directly on an action, then listening to Firestore DB changes and mapping this back…
5
votes
3 answers

@react-native-firebase breaking unit tests

I installed v6 of @react-native-firebase, it's working as expected but when I try to run a unit test I get the following error: Jest encountered an unexpected token Details: /node_modules/@react-native-firebase/database/lib/index.js:18 import {…
Octavio
  • 171
  • 1
  • 5
5
votes
4 answers

How to call a function after map() loop executed

I'm using react-native firebase to save my media into firebase. I have a set of URLs that need to be saved in the firebase. For that, I'm using map() to save one by one. After saving I'm pushing the success URL to the array. I need to call a…
5
votes
1 answer

Notifications - Clear all notifications in the android notification tray

I'm sending multiple notifications to my app. What I want to achieve is whenever a user clicks one notification then all notifications in the notification tray disspear. I've tried adding notification.android.setAutoCancel(true) which does the…
5
votes
2 answers

onSnapshot appears to stop working after a period of time

I am using firestore onSnapshot methods in a React Native app on several different sets of data in my app, and for the most part they all appear to work fine. However, after a period of time, perhaps after the app is put into background and…
5
votes
2 answers

How can I set notification sound when app is not running in React-Native firebase

I'm trying to make notification ringing when app is not running in IOS. Here is my code. this.notificationListener = firebase.notifications().onNotification((notification: Notification) => { // SET SYSTEM DEFAULT SOUND! …
5
votes
0 answers

React Native Firebase, Notification not showing when the app is in foreground, only on Android 8 or later with bundle build

I have an app with react-native-firebase notification, the message is sucessfully received and the notification is successfully created and displayed on Android Nougat or older, on Android Oreo or later I have adding channelId it works well when…