Questions tagged [react-native-firebase]
This tag is for the react-native-firebase npm package.
1,179
questions
0
votes
0
answers
18
views
React native firebase getting a snapshot first time
The problem is. In React-Native-Firebase I try to get a snapshot from firebase.But when there is no internet and the program is started firstly (no locally saved snapshot) it is just freezed on .then(...
0
votes
1
answer
26
views
How can I fix this problem in React Native Firebase?
I have the next problem:
export async function updateLessons() {
let data
await database().goOnline().then(async () => {
await database()
.ref('days')
.on('value', snapshot => {
...
0
votes
0
answers
26
views
firebase.database(app) arg expects a FirebaseApp instance or undefined
I'm trying to set data to my realtime database on firebase. I have used the following code.
I am passing my database name as well as the region in my url still getting this error. Is there anyone who ...
1
vote
1
answer
18
views
React Native: How to conditionally render a value returned from a function that calls Firebase function?
In my React Native app, I have the following function that returns a value from Firebase:
const func = () => {
const a = useFirestoreCollection(
userRepository
.getRef()
....
0
votes
0
answers
26
views
Firebase authentication and redux-saga synchronizing state
I have a design question on how to manage firebase auth & redux saga states with react-native-firebase.
Example use-case
Let's start from the scenario that I have an app that uses the idToken for ...
0
votes
0
answers
34
views
Firebase authentication - refreshToken automatic refresh
I am developing a react-native application which will use firebase authentication, and I have some doubts about how refresh tokens should work.
I am using the react native package https://rnfirebase....
-1
votes
1
answer
70
views
Why setBackgroundMessageHandler not working in iOS?
I am using React native free-base version v10. 1 and React native firebase messaging version 14.9.1. I got the notification in the background but was not able to get logs(payload) in iOS. is there any ...
0
votes
0
answers
32
views
Getting error firebase module not called while uploading image to firestore databse
I am trying to upload a picture to firestore storage using an async function. I have added the configuration files from the firebase in the project. I am using expo workflow for my project and and I ...
0
votes
1
answer
17
views
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'. #2099 ,
im getting this error in expo, and i installed firebase/app again, and installed jetifier and tried running the npx jetify command also im getting the same error again
Execution failed for task ':...
0
votes
0
answers
22
views
How to get notifications click/open updates in RNFirebase
I am using RNfirebase to push notifications to my React native application. When the app is in background I am trying to send a notifications which is working fine in the app and I am clicking the ...
0
votes
0
answers
20
views
logEvent() is stacked twice in react-native-firebase
I'm using react-native-firebase/analytics@^14.8.0
When the button is touched, logEvent() is generated.
When an event is generated and checked in firebase -DebugView, it is touched once, but two ...
1
vote
1
answer
36
views
Realtime database update or create functionality
I have a user object in firebases realtime database. I am querying realtime database and when successful I am wanting to write some new data to the user object under the users node.
My desired outcome:...
1
vote
0
answers
68
views
React Native Expo / FCM: you attempted to use a firebase module that's not installed on your Android project by calling "firebase.app()"
I have a React Native/Expo app wherein I am trying to use Firebase Cloud Messaging on an Android Device. My web instance of this works just fine, but I am stuck on implementing a successful Firebase ...
0
votes
0
answers
21
views
openUrl is not working in first attempt for mailto option in emulator in react native
I have tried to open gmail using linking.openUrl - mailto option. I can open gmail in my real device with first attempt.But In emulator its not open in first attempt and if I click same link second ...
0
votes
1
answer
46
views
How to user filter with Firestore database in React Native?
I want to filter the firestore query to get all docs that do not contain a specific value.
I used @react-native-firebase
import firestore from '@react-native-firebase/firestore';
const ...
1
vote
1
answer
77
views
Firebase cloud functions folder not showing
I am using firebase with react native . Trying to write some firebase cloud functions. For that i have used firebase init . On console it gives a success message but the function folder is not been ...
0
votes
1
answer
121
views
@react-native-firebase_app' could not be found in project ':react-native-appgain-sdk-library
Where:
Build file '/node_modules/react-native-appgain-sdk-library/android/build.gradle' line: 80
What went wrong:
A problem occurred evaluating project ':react-native-appgain-sdk-library'.
Project ...
0
votes
0
answers
44
views
Get all data inside collection, which is nested inside a document inside a parent collection in firebase using react native
As in this image, I want to get all the data inside the document ASD21211AAZFKSW .
The output to this would be - an array of ASD212zxd2aaaa and messages like [ASD212zxd2aaaa, messages]
0
votes
0
answers
28
views
Firebase dynamic links based on mobile's OS
I want to create a dynamic link which will redirect to different places base on mobile's OS is Android or iOS, here is my code:
const link = await firebase.dynamicLinks().buildShortLink({
link: `...
0
votes
0
answers
36
views
Firebase auth - Phone sign-in method not rendering correct SMS messages template for IOS
I have a Firebase project where I set up auth so users can log into app using cell phone.
Its a react native app and Ive built for both IOS and Android.
In the project settings I populated the "...
0
votes
0
answers
24
views
How to handle Cloud FireStore Triggers when migrating to react-native-firebase 6.x.x?
In my React Native project I'm migrating react-native-firebase from version 5 to version 6 using this guide. In the Specific Module Installation section it says to import the functions module using @...
0
votes
0
answers
33
views
react-native-firebase firestore and auth failing silently on Android
I have been stuck on a problem for about a week. Firebase with the package mentioned above is not working neither on development or release version.
At some point I could not identify auth and ...
0
votes
0
answers
48
views
reauthenticateWithCredential throws error: session-expired - The sms code has expired. Please re-send the verification code to try again
On a real Android device, reauthenticateWithCredential() throws the error message below. The code works fine on an Android emulator (with no errors)!
[auth/session-expired] The sms code has expired. ...
0
votes
0
answers
42
views
(Firebase| React-query) useDatabaseSnapshot does not update on change of database
I am using useDatabaseSnapshot to get snapshot of database and with subscribe set to true I expect the hook to run again when data changes and re render the component and i am passing data to the ...
0
votes
1
answer
51
views
Firebase authstate takes long to authenticate user on slow connection - React Native
I'm creating a react native app that connects to firebase.
However, when I started my app in slow internet speeds, it took a while to load, and the code showed me that this was due to the wait for the ...
0
votes
0
answers
12
views
this._firestore.native.x is not a function. react-native-firebase with expo
I'm using expo 44 to develop an app with firebase, to achieve that I'm using the react-native-firebase module that seems to be compatible with expo.
I followed the integration guide
I installed every ...
0
votes
0
answers
22
views
iOS App Transfer - Will Firebase FCM tokens lose push notification functionality?
I’m considering doing an iOS App Transfer to another App Store Connect account however I am concerned about losing push notification ability to iOS users via FCM during the transition. I’ve had a dig ...
0
votes
1
answer
60
views
Flatlist not scrolling react native
for some reason my flatlist is not scrolling and I'm not sure why. Would love any tips!
Here is the code for the flatlist:
return (
<Layout>
<View style={styles.header}>
...
1
vote
1
answer
45
views
React Native Firebase: Trying to port to a new firebase project but app shows older values
I am trying to port my existing RN app from an older firebase project to another one. But when I change the google-services.json to a new one pointing to the new Firebase project the references to my ...
0
votes
0
answers
60
views
react-native-firebase freezes app on splash screen
I followed all the instructions on https://rnfirebase.io/ for installing firebase, but my app still freezes on splash screen
I have no error message because the issue only occurs once the app is built ...
0
votes
0
answers
28
views
Google Play Reject: Is there a way to use Firebase Analytics without using background location?
I've uploaded my react-native app to Google Play and it has been rejected due to using background location permission.
The rejection email from Google Play
Google Play won't allow any background ...
1
vote
1
answer
71
views
React-Native-Firebase Spread auth().currentUser Object {...auth().currentUser}
when I Console.Log(auth().currentUser) i get the following result:
Object {
"displayName": "Test",
"email": "test@gmail.com",
"emailVerified": ...
0
votes
2
answers
86
views
React Native realtime database build error
So I tried adding firebase database to an existing project and it kept throwing this gradle error, however when I made a new project and installed it, It worked fine, even the the project I'm ...
2
votes
0
answers
37
views
firebase_auth/missing-client-identifier error starting to be thrown to a limited number of users recently
We are using Firebase auth on a React Native app using react-native-firebase for several years now (currently at 12.9.3). A few days ago, without a new Android release or changes in the Firebase ...
0
votes
2
answers
53
views
Getting TypeError: null is not an object in my react native app
After logging in, the user is redirected to profile page, where I fetch data from firestore (firebase) and then use it to display the profile details, but I am getting render error TypeError: null is ...
0
votes
1
answer
115
views
React Native Firebase Authentication Displayname null
I have created an authentication with firebase in my mobile app. While the user is registering, I need to give the displayName with the updateProfile method. When the user registers, it automatically ...
0
votes
0
answers
37
views
parse issue: expected a type RNFirebaseMessaging
I'm updating RN from 0.61.5 to 0.67.3 and I faced that issue on iOS:
parse issue: expected a type RNFirebaseMessaging. I can't find any info on it. I'm using react-native-firebase 5.6.0
UPDATE: I ...
0
votes
0
answers
30
views
How to enable persistence in React Native Firebase
Why my react native app data disappears when reloading the app? I thought that react-native firestore persistence is enable automatically?
By the way here's the code of enabling persistence in React ...
2
votes
1
answer
57
views
Image Doesn't show in Notification React Native Firebase
I have a problem with images in notification with rnfirebase v5.6.0.
I receive image from messaging and the image link correct but can't show the image in notification.
It does not happen at all the ...
0
votes
0
answers
38
views
Firebase auth : facebook missing email on JWT/ User object ( but available inside providerData )
I am using firebase auth for my app authentication. I have google and facebook logins enabled. I observed that for google, after a successful authentication, the JWT token and the User object has '...
1
vote
0
answers
88
views
Expo bare workflow with Firebase Analytics
I am building a project using Expo in bare workflow.
I am trying to integrate @react-native-firebase package to utilize Analytics; however, I am unable to link it correctly it looks like.
My Podfile ...
0
votes
0
answers
134
views
undefined is not an object (evaluating '_app.default.auth') FIREBASE REACT NATIVE EXPO
I hear that Firebase is great and I'm finally adding it to one of my React Native projects, but keep getting import errors or errors with the methods. Has anyone come across this issue?
Here is the ...
0
votes
0
answers
94
views
Twitter Sdk integration in React-native Android
I am getting error while building the application for android.
Could not find com.twitter.sdk.android:twitter-core:3.1.1.
build.gradlew looks like this.
implementation 'com.facebook.react:react-...
0
votes
1
answer
84
views
Unable to signinWithPhoneNumber using react-native-firebase
We keep on getting this error "We have blocked all requests from this device due to unusual activity. Try again later."
When we try to signInWithPhoneNumber . This also blocks all the ...
0
votes
2
answers
237
views
React Native Firebase onAuthStateChanged returns user after signOut
I'm struggling with signing out in my app. I'm using freshly installed managed Expo app with dev-client and @react-natice-firebase/auth, all in their current version. For the user state i'm using ...
4
votes
1
answer
1k
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 ...
0
votes
1
answer
86
views
Does Firebase Firestore keep a local copy of snapshot
I am using firebase firestore for my chat room application.
I have a function to send messages to firebase as
const sendMessageHandler = message => {
if (message) {
firestore()
....
0
votes
0
answers
91
views
Where are the Firebase Crashlytics and Analytics user ID and custom attributes shown in their dashboards?
We are using Firebase Crashlytics and Analytics (which goes to Google Analytics).
While we identify the users for both platforms, plus we add extra attributes to them, we cannot find any related info ...
0
votes
0
answers
119
views
React native:Fcm Notifications are not coming in closed / killed app
i am using react-native-firebase @5.6.0
i am using Fcm legacy api to send notifications , i only get notification when app is in background state, when is closed or killed , i dont see anything.
i ...
0
votes
0
answers
222
views
Bundling failed ... ... none of these files exist; missing firebase\index
I've started experimenting with React Native and Firebase but I can't seem to run it without missing files:
Android Bundling failed 597ms
While trying to resolve module `firebase` from file `C:\...