All Questions
Tagged with react-native react-native-firebase
1,200
questions
61
votes
11
answers
98k
views
Get Error : Firestore: The caller does not have permission to execute the specified operation. But I have already signed in
I have this problem and try to fix with all solutions I had found,but still not works. My rules in firebase cloud firestore is :
service cloud.firestore {
match /databases/{database}/documents {
...
60
votes
22
answers
103k
views
APNS device token not set before retrieving FCM Token for Sender ID - React Native Firebase
I have been following this tutorial to set-up Remote Push notifications on my react-native application using react-native-firebase Version 5.2.0. After I configured everything and ran the application ...
23
votes
13
answers
73k
views
Java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/FirebaseApp
This is React Native project. I have an error after successful build in Android Studio Emulator:
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/google/firebase/FirebaseApp
My files:
...
23
votes
1
answer
4k
views
Firebase & iOS 14 > Will dynamic links tracking and campaigns continue to work?
As most of you are probably aware, iOS 14 will basically put an end to app acquisition tracking as we know it.
Here are two great articles that explore the issue in length:
The App Attribution ...
22
votes
1
answer
13k
views
How to setup sendSignInLinkToEmail() from Firebase in react-native?
Working on a react-native project using @react-native-firebase/app v6 we recently integrated signing in with a "magic link" using auth.sendSignInLinkToEmail
We couldn't find a good example on how to ...
21
votes
10
answers
195k
views
Command Failed: gradlew.bat installDebug error whenever installing dependencies like navigation, firebase, icons etc in React-Native
When ever i install any dependency in my react native project and when ever i use link command for e.g react-native link react-native-gesture-handler this causes me an error shown in the image [1].
It ...
20
votes
4
answers
11k
views
Error: RNFirebase core module was not found natively on iOS
I created a new app and I am trying to use react-native-firebase. But I continually get this error:
RNFirebase core module was not found natively on iOS, ensure you have
correctly included the ...
19
votes
2
answers
8k
views
How can we use Firebase Analytics with an expo based react-native app
I am trying to add Firebase Analytics (FA) to my react-native app.
Actually, I didn't find a problem to put Google Analytics (GA) using this library expo-analytics.
But apparently Firebase analytics ...
19
votes
4
answers
8k
views
What's the difference between Firebase JavaScript SDK and react-native-firebase
I am trying to use to use Firebase (Cloud Firestore) for a react-native app, to store my JSON objects.
I ve seen people using Firebase in their apps (npm install firebase), and others using react-...
17
votes
5
answers
25k
views
The sms code has expired. Please re-send the verification code to try again
Whenever I tried to login with phone number using react-native-firebase sdk, I recieve OTP code through sms and when I submit the recieved code, an error is there saying:"The sms code has expired. ...
17
votes
3
answers
14k
views
How to remove use_frameworks! AND keep using swift pods on an objective-c project?
our project is an Objective-c project.
Since we're using react-native-firebase we can't use use_frameworks! in cocoapods any more.
The problem is we have a swift pod dependency (PromiseKit) and to ...
16
votes
3
answers
7k
views
Can't get data from React-Native-Firebase(v6) Firestore: undefined is not a function (near '...this._firestore.native.collectionGet...')
I've been stuck on this issue for so long. I just started implementing Firestore in my react-native application with react-native-firebase. I'm just following the docs [https://invertase.io/oss/react-...
16
votes
2
answers
16k
views
ERROR: Could not find method platform() for arguments - React Native - Firebase
Has anyone faced this issue following the official documentation for react-native-firebase?
ERROR: Could not find method platform() for arguments [com.google.firebase:firebase-bom:21.1.0] on object ...
15
votes
2
answers
7k
views
library not found for -lRCTGeolocation
Have installed react-native-firebase & and i'am using my project.xcworkspace for getting build on iOS with Xcode that was fine when I installed only auth & core packages. When i installed ...
14
votes
5
answers
17k
views
Could not reach Cloud Firestore backend - React native Firebase v9
I saw many questions on SO regarding this issue and none of them was answered (or the solution doesn't work), I don't know why. People are having this error continuously but no solution is being ...
13
votes
10
answers
27k
views
FB login - Firebase.Auth() Error: The supplied auth credential is malformed or has expired
I'm using react-native-fbsdk: 0.8.0, react-native-firebase: ^5.2.2, react-native: ^0.57.4 and Facebook Test User account.
This happened so suddenly.
Once I sign out from firebase and try to log in ...
13
votes
3
answers
35k
views
Show notification on foreground react native firebase v6
I am using the latest react native version 0.62 and latest version of react-native-firebase i.e. v6. I am able to get the notification and it working fine on the background but its not displaying on ...
13
votes
4
answers
8k
views
After installing react-native-firebase/app it's Build will failed in react-native ios
After installing react-native-firebase/[email protected] with react-native-0.68.1 using use_frameworks! and remove flipperin the podfile of the project , but when i ran npx react-native run-ios it's Build ...
13
votes
4
answers
9k
views
Version conflict between gms:play-services-vision and firebase
I've installed both react-native-firebase and react-native-camera. The camera was fine when play-services -vision was stuck at 12.0.1, but I just ran into this error (Error updating property ...
13
votes
3
answers
3k
views
Bring Android React Native App to Foreground On Receipt of Data Only Firebase Cloud Message
I am successfully using Firebase Cloud Messaging with react-native-firebase to send and receive data only messages between Android devices.
When a device receives a message, if the app is in the ...
12
votes
3
answers
21k
views
How to resolve React Native Firebase Error (messaging().getToken()), related to react-native-device-info
I am in the process of migrating react-native-device-info from v2 to v3 and I have a breaking change. Prior to updating the package, everything was working fine. The error appears on all emulators and ...
12
votes
4
answers
6k
views
Can't compile React Native iOS app to run on physical device, issue with React Native Firebase
For some reason since recently, I cannot run my React Native app on a physical device from Xcode or even from the command line. I'm getting the following error:
duplicate symbol '...
12
votes
1
answer
7k
views
React Native Firebase error Thread 1 SIGABRT - iOS
Problem
After following the tutorial for react-native-firebase, my app hangs after a successful build. The error I get in Xcode is: Thread 1: signal SIGABRT. I understand from other questions that ...
11
votes
7
answers
38k
views
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'
In my React Native 0.60.4 app i'm trying to use react-native-firebaseand i have done everything except react-native-link as it's not supported in the latest version of React Native. When i give ...
11
votes
8
answers
41k
views
You attempted to use a firebase module that's not installed on your android project by calling firebase.storage()
Im trying to use firebase storage on React Native using the react-native-firebase module and when y call firebase storage I get this error:
You attempted to use a firebase module that's not installed ...
11
votes
1
answer
10k
views
messaging().onNotificationOpenedApp is never triggered, messaging().getInitialNotification() is triggered but remoteMessage is always null
I'm using react-native-firebase v6.4.0. I successfully registered a background handler with setBackgroundMessageHandler and everything works fine. Now I'm trying to handle notification tap when the ...
11
votes
2
answers
6k
views
React Native Firebase Storage Upload fails with Unknown error
I am using react-native-firebase to work with our Firebase account for authentication, firestore and storage. Attempting to upload a photo to Storage is failing with an unknown error. Here is the code ...
11
votes
3
answers
6k
views
Firebase Dynamic Links - Can't get Url in android after install app from play store
If I install the app when clicking the dynamic link. All of that information from dynamic should be still available when I open the app for the first time.How can I get that information? It is not ...
10
votes
4
answers
3k
views
React Native Firebase Social Auth doesn't work on release
So, my app is already on Google Play and out of a sudden my social auth isn't working anymore. It works fine on debug and when I run --variant=release on the terminal, but it doesn't work when I ...
10
votes
2
answers
12k
views
Unable to view Firebase Analytics Debug View React Native
I've followed multiple tutorials and read multiple Stackoverflow posts, but no matter what I do, I can't get anything to show up in my DebugView for my iOS app using RNFireBase. I would really ...
10
votes
1
answer
11k
views
Can't get setBackgroundMessageHandler to work
In react-native-firebase v6, I can't get setBackgroundMessageHandler to work in my app. Notifications are received just fine but the handler is not executed.
I have done it like in the guide to no ...
10
votes
2
answers
3k
views
How to remove MainActivity and UIViewController from screen tracking in React Native Firebase Analytics?
I have successfully implemented screen tracking for a react native project that uses react-navigation with react-native-firebase/analytics.
Looking at the dashboard under events I see the following ...
10
votes
1
answer
3k
views
How to fix firebase "User is not authorized" error even though user is authenticated in registration flow?
Im trying to do a variety of firebase actions in one call in a react-native app using react-native-firebase. the flow goes something like this:
create user in authentication
send image to storage
...
9
votes
6
answers
10k
views
When I try to build for production this error comes up
When I try to build for production, this error comes up. I'm using React Native Firebase. This error happens on android.
Here is the error
* What went wrong:
Execution failed for task ':react-native-...
9
votes
6
answers
10k
views
Expo and react-native-firebase
I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase package when it comes to react-native apps.
However, ...
9
votes
5
answers
21k
views
WARN No task registered for key ReactNativeFirebaseMessagingHeadlessTask in react native?
I have created a push notification using react-native Firebase and react-native-push-notification. i have implement all types of notifications like local, schedule background and quit. But i have sent ...
9
votes
1
answer
5k
views
onNotificationOpened and getInitialNotification not getting triggered react-native-firebase
I have used react-native-firebase in my react native project[android platform] to show the app notification. With this library i am able to show the notification when the app is in the foreground/...
9
votes
1
answer
2k
views
Upgrading target sdk to 29 on React Native 0.59
My current android target sdk on React Native is 28, but Play Store is showing to update it to 29.
So I made the following changes in android/build.gradle
buildscript {
ext {
...
9
votes
1
answer
1k
views
Dynamic links not redirecting to app store if app not installed in ios
I am using firebase dynamic links. This is working fine as app in installed on ios or android. as if app not installed on android it redirects me to play store. but in ios if app is installed it is ...
8
votes
2
answers
2k
views
How can I cache the getDownloadUrl() calls on the client with Firebase Firestore?
I store some Firebase Storage paths for images/videos in the backend DB and the mobile client uses these to fetch the download URLs as/when needed for my views:
import {firebase} from '@react-native-...
8
votes
2
answers
9k
views
Is it okay to store a lot of data with Async Storage? [React Native]
I’m working on a react native app where I have my firebase database storing an inventory of about 10000 items.
So I need to store that data locally and I was thinking of saving each item into his own ...
8
votes
0
answers
2k
views
How can I wake up device when notifications arrived on Android with react-native-firebase?
I'm developing the notification feature using react-native-firebase on React native in Android.
Most of the features(such as remote notification on foreground and background, displaying local ...
8
votes
1
answer
4k
views
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 ...
7
votes
2
answers
13k
views
how to fix error "No task registered for key RNFirebaseBackgroundMessage" when my app is closed for getting fcm message
my AndroidManifest is
in index i wrote
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => firebaseBackgroundMessage);
that firebaseBackgroundMessage is a function as below
...
7
votes
1
answer
4k
views
react-native 0.64.2 firebase compilation error on setScreenName
Firebase compilation in error at [FIRAnalytics setScreenName ...] in RNFirebaseAnalytics.m
when updated to react-native 0.64.2 from 0.61
node_modules/react-native-firebase/ios/RNFirebase/analytics/...
7
votes
2
answers
5k
views
Unable to fetch data from Firebase Firestore in react native
I am trying to GET data from Firestore but I cannot see data coming. I am building a react-native app. I am using react-native-firebase.
I also tried Transactions method from react-native-firebase ...
7
votes
6
answers
11k
views
Error: 400: Your project does not own Dynamic Links domain
I'm using react-native-firebase to create dynamic links, when I create standard link everything works fine, but when I'm creating short link, it gives an error:
"Error: 400: Your project does ...
7
votes
2
answers
326
views
How to debug react-native app using reanimated and firebase
native developers. I have been developing and maintaining a react-native app for the past four years now. Now I have come to a point where I no longer know a way to debug my app. I am using recent ...
7
votes
1
answer
827
views
Group notifications by id and display like Whatsapp
I've been trying to group notifications by an id to have them displayed as WhatsApp for example, without having one notification per line.
Adding setGroup in either onNotification or ...
6
votes
4
answers
10k
views
How to crash a react native android app
I am working on react-native-firebase crashlytics. I am using rnfirebase starter kit. There we have crashlytics integrated with the project. Now, I want to crash my app to check the crash report.