Skip to main content

All Questions

Filter by
Sorted by
Tagged with
11 votes
2 answers
5k views

Firebase Firestore emulator on physical IOS / Android device

I'm trying to get the Firebase - Firestore database emulator to work on my physical IOS device via the Expo application while I develop. I can get Localhost to work in a browser and 10.0.2.2:(8080) to ...
eyerishluv's user avatar
10 votes
2 answers
23k views

firebase Error : FirebaseError: Missing or insufficient permissions

so I'm getting these Errors out of nowhere, I worked with the code yesterday and everything was fine. This is like a social Media platform and yesterday I could display the Posts, and today I can't. I ...
chin14's user avatar
  • 214
9 votes
1 answer
4k views

Firebase Firestore missing or insufficient permissions using Expo (React Native)

I've been using FireStore for a project that works fine in the browser, but when I port the code to Expo, running on a iOS 11.2 iPhone X in the simulator, it keeps raising Error: Missing or ...
raphaeltm's user avatar
  • 817
6 votes
3 answers
4k views

could not reach cloud firestore backend with firestore emulator on android emulator

My problem is that I'm unable to call firestore from the client using the firebase firestore emulator on Android emulators. I've tested multiple Android emulators. The error I'm getting suggests the ...
Gwater17's user avatar
  • 2,224
6 votes
3 answers
19k views

Firebase Firestore collection retrieval in React Native

I'm building a React Native app with Expo using the Firebase web api and trying to retrieve a collection of documents from my Firestore project. According to the documentation over at https://firebase....
Pip's user avatar
  • 182
5 votes
1 answer
2k views

expo push notifications using firebase cloud functions in react native

Seeing this tutorial on https://www.youtube.com/watch?v=R2D6J10fhA4, I am trying to implement Send Push Notifications ( Expo + Firebase Cloud Functions) I'm trying to write a cloud function that will ...
user8398107's user avatar
5 votes
2 answers
498 views

How to combine two Redux Firebase Cloud Firestore queries?

I have two redux queries that pull posts from my Firebase Firestore. The first successfully displays all of the posts of the people I'm following: export function fetchUsersFollowingPosts(uid) { ...
Tom Wicks's user avatar
  • 925
5 votes
2 answers
511 views

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 ...
learningAngular's user avatar
4 votes
5 answers
1k views

Issue with Firebase on expo project

Whenever I click the submit button on my code to upload data to my firebase database, I get this error : ERROR [2024-01-21T03:39:39.733Z] @firebase/firestore: Firestore (10.7.2): INTERNAL UNHANDLED ...
Hudson's user avatar
  • 51
4 votes
1 answer
8k views

Firestore: Could not reach Cloud Firestore backend. Connection failed 1 times

I have a Firebase real-time database integrated with React Native where I can create users. But my problem is that when I try to log in I get an error. I run my app on IOS if it makes any difference. ...
Filip Huhta's user avatar
  • 2,226
3 votes
1 answer
860 views

ReferenceError: Can't find variable: IDBIndex when using Firebase on Expo

I'm developing an app using Expo, using the Firebase JS SDK (https://docs.expo.io/guides/using-firebase/), only for Authentication and to use the Cloud Firestore Database. It works fine on browser but ...
Elena Cavallero's user avatar
3 votes
1 answer
182 views

How do I arrange my data in Firestore to avoid performance issues when users increase

I have 2 Firestore collections I am worried about. Named Posts and Chats. POSTS The setup -- In Posts, each document has a field named Comments (an array of objects). Every time a comment is made on a ...
David's user avatar
  • 123
3 votes
4 answers
1k views

Type Error undefined is not an object (evaluating 'Wu.getRandomValues')

This is the code I implemented for adding data to collection: import FirebaseKeys from "./config"; import firebase from "firebase"; import "@firebase/firestore"; class Fire { constructor() { ...
moh_it's user avatar
  • 31
3 votes
1 answer
1k views

foreach loop not working with google cloud firestore in react native

I am trying to migrate from real-time database to firestore in react-native with expo. Why won't the foreach loop work now? RTDB firebase.database().ref('messages').child(this.chatID).on('value', ...
Tipper's user avatar
  • 319
3 votes
0 answers
221 views

How to localize push notifications using Expo

I'm currently working on a Expo project and I've setup the expo-server-sdk on my google-cloud-functions to send push notifications. The implementation worked but now I'm stuck on how to localize my ...
lucas6198's user avatar
3 votes
0 answers
32 views

Solution application does not crash

I have a large amount of data that needs to be added to the firestore, which makes my app crash onto the main screen of my iPhone 6. After taking steps like preventing continuous request sending or ...
Thắng Trương Khắc's user avatar
3 votes
1 answer
3k views

How can I fix Firebase/firestore error in React native?

I am trying to run a React Native app on an android simulator. I am using Firebase firestore. The app works without any error with Expo. Expo uses an older version of React Native. But downgrading ...
Eric Torosyan's user avatar
3 votes
0 answers
1k views

Expo Snack: _firebase.default.firestore is not a function

I made a service in my React Native Expo Snack app that handles the instantiation of different firebase services. Somehow, Snack isn't able to find firestore, as it says "_firebase.default.firestore ...
Jaap Weijland's user avatar
2 votes
2 answers
9k views

Unable to resolve module fs when running expo start

Can't for the life of me figure out why my app suddenly won't start. I keep getting this error: Unable to resolve module fs from node_modules\firebase-admin\lib\firebase-namespace.js: fs could not be ...
Christian's user avatar
  • 366
2 votes
2 answers
4k views

Firebase Firestore onSnapshot PayloadTooLargeError: request entity too large on Expo / React Native project

I have Expo / React Native project that subscribes to listen Firestore collection updates. I updated Expo SDK from 39 to 40 and onSnapshot callback function started to throw 'PayloadTooLargeError: ...
popupyoga's user avatar
2 votes
2 answers
951 views

Expo does not work with firebase emulator

I'm trying to access the firestore emulator (hosted locally) through my Expo app on both physical and emulated devices, which both don't work. When I make a call to the emulated firestore database, ...
Will's user avatar
  • 67
2 votes
2 answers
3k views

Connecting Firestore to Expo-managed React Native App

I'm trying to connect Firestore (v 9.6.7) to my app. I'm using web 9 syntax. My code is almost directly from the guides here. It looks like: import { initializeApp } from 'firebase/app'; import { ...
akore128's user avatar
2 votes
1 answer
1k views

Adding a line in podfile in an expo managed project

I am trying to use invertase/firestore-ios-sdk-frameworks in my project but it implies modifying directly the ios podfile. Is there a way in an expo managed project to add a specific line to a podfile ...
Harijoe's user avatar
  • 1,781
2 votes
2 answers
729 views

Expo + firebase: Could not reach Cloud Firestore

Using Expo 44, my app can fetch Firestore content properly in Expo Go with expo start. But when publishing with expo run:android, it gives following error, while auth is working properly. [2022-06-...
user000001's user avatar
2 votes
1 answer
540 views

React Native combine 2 Firestore collection in one Flatlist

I have 2 collections in Firestore to do FeedScreen like this collection users (when user register App) users = [ avatar: '', email: '', name: '' ] collection Post (when user create a post)...
Natnicha Chuen's user avatar
2 votes
2 answers
146 views

Firestore Could not reach Cloud Firestore backend: code=permission-denied

Im using Firebase with React-Native and Expo. Firebase.js import { initializeApp } from "firebase/app"; import { getFirestore, initializeFirestore } from "firebase/firestore"; ...
umbreonben's user avatar
2 votes
1 answer
895 views

Expo project TypeError: undefined is not an object (evaluating '_firebase.default.firestore')

I have and Expo project with this firebase config file: import firebase from 'firebase/compat/app'; import 'firebase/compat/auth'; import 'firebase/compat/firestore'; const firebaseConfig = { ... };...
Noisemastering's user avatar
2 votes
1 answer
237 views

Get list of items from firestore in react native/[Unhandled promise rejection: FirebaseError: Expected type 'ba', but it was: a custom Oa object]

Hi there i need to get from my firestore db a list of items like this items={{ '2012-05-22': [{name: 'item 1 - any js object'}], '2012-05-23': [{name: 'item 2 - any js object', height: 80}], ...
Juan's user avatar
  • 87
2 votes
1 answer
614 views

wait for onSnapshot fetching data

I'm currently learning React Native (Expo). I want to use redux and react-native-firebase. When I subscribe to firebase (onSnapshot) at startup of my app, it returns the data from firebase. But since ...
sexpomicolon's user avatar
2 votes
1 answer
387 views

Firebase Firestore with Expo v37

Hi I am using Expo v37 and Firebase SDK v7.9.0 My imports look like this: import * as firebase from 'firebase/app'; import 'firebase/firestore'; import 'firebase/auth'; import { YellowBox } from '...
Pedro's user avatar
  • 1,178
2 votes
1 answer
79 views

I can't log in with Google on the Expo app for Android/iOS (React-Native, Firebase, Expo)

When signing in with Google on the web version of Expo, I have no issues. The difficulties arise when I try to sign in from the Expo app on Android/iOS, indicating the following error: Uncaught Error ...
Bayron Reyes's user avatar
2 votes
0 answers
88 views

React Native Expo is stuck between specific lines of code

I'm writing an app using React Native and Expo, which integrates with Firebase. In my app, I have the following function, which uploads an image to the Storage service, and some data regarding that ...
Yuval.R's user avatar
  • 1,277
2 votes
0 answers
113 views

Function addDoc() called with invalid data. Unsupported field value: undefined

I'm trying to add my contact form details to my firebase database but I got error. I run this project in expo. In web version, data is going to firebase but in mobile version I am facing this error. ...
Hymdal's user avatar
  • 146
2 votes
1 answer
2k views

Error: @firebase/firestore: Firestore (9.6.11): Could not reach Cloud Firestore backend

Error firestore in react native Expo... ERROR [2022-10-07T15:34:49.615Z] @firebase/firestore: Firestore (9.6.11): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent ...
Ashraf Waleed's user avatar
2 votes
1 answer
147 views

Firestore (9.1.3): Connection WebChannel transport erroned / Work on web browser but not on device mobiles (IOS/Android)

After upgrading from firebase v8 to v9 I have this problem, writing to firestore works fine in web browser but not on IOS / Android (no writing is done), after few minutes I have this warning: @...
Orhan Eroglu's user avatar
2 votes
0 answers
177 views

Expo/Firestore Compatibility

I'm running a project on expo, but i'm having difficulties implementing the firestore backend into the code. Not that much helpful documentation out there to help with the syntax. I've created a ...
Benz3000's user avatar
2 votes
2 answers
702 views

'firebase.firestore is not a function' when using in react-native expo

I am trying to use Firestore in the react-native expo. But getting the error 'firebase.firestore is not a function', even there are many solutions on the internet; I could not get it to work. https://...
Karthikeyan's user avatar
2 votes
0 answers
245 views

expo and firestore, unhandled promise rejection: typeError

I have been getting this error for the last two days now. This happened after I installed a node module named "faker". What I've found out until now is that npm 5 deleted any packages from the package....
russsell phillips's user avatar
2 votes
1 answer
1k views

Firestore permission denied when using signInWithCredential(), React Native Expo

firebase.initializeApp(config); const db = firebase.firestore(); const googleSignIn = async () => { return await Expo.Google.logInAsync({ androidClientId, ...
zino's user avatar
  • 1,492
2 votes
0 answers
324 views

Firestore security rules and Expo not working properly

I'm using expo and the firebase web sdk. Everything works fine in my app aslong as I leave the security rules as service cloud.firestore { match /databases/{database}/documents { match /{...
juicy89's user avatar
  • 448
2 votes
1 answer
964 views

Persistence support for Firestore in Expo React Native app

I am getting the below error: You are using the memory-only build of Firestore. \ Persistence support is only available via the @firebase/firestore bundle \ or the firebase-firestore.js build. I'm ...
Shrinivas Seenu's user avatar
1 vote
1 answer
702 views

Firestore not connected using Expo-dev-client

If I use expo start, my firestore work fine in Expo Go. But when i use expo start --dev-client it stop working. I already tried using EAS using EAS Migration Guide, but the same error happen. Here is ...
muhammad ripqi's user avatar
1 vote
1 answer
274 views

React Native Firebase: How can you display a text from Firestore?

i am trying to make an app with React native, Firebase and Expo that shows a text that is loaded from the Firestore. For example: I want the app to display "helloworld". So my Firebase ...
Terox's user avatar
  • 119
1 vote
1 answer
916 views

getting an error while trying to run my app with firestore: Attempted to assign to readonly property

I'm currently working on an app in which you can keep track of Root Canal patients and it was working fine for a long time...but after the new update of the firebase package in expo...I've been ...
Vibha's user avatar
  • 77
1 vote
1 answer
418 views

Using Firebase to Authenticate login page in a React Native Expo App but have to click the button twice for the full function to execute

I am trying to login using firebase but when I click the button my function runs till the part signInWithEmailAndPassword, but for the entire function to execute and for me to navigate to the next ...
Taimoor Tahir's user avatar
1 vote
1 answer
249 views

ReadableNativeMap cannot be cast to java.lang.String when using Firestore and Expo

I was trying to write data to Firestore but got this error. The error only appeared after data had been written (about 1 min). I looked it up and it seems like firebase has a problem with expo-pixi. I ...
dao ngoc hieu's user avatar
1 vote
1 answer
239 views

deleting from array in firebase

Im currently having trouble deleting an item from my array in my firebase firestore. I'm able to delete it locally but when I refresh it shows up again. I know I'm supposed to use the actual value. ...
cornOnDaJaCob04's user avatar
1 vote
1 answer
510 views

Running an async function with React Native and Firestore returns goofy results

I'm trying to learn react native along with firebase firestore and I'm racking my brain trying to figure this situation out. Below is my code. I'm trying to pull user information stored in firebase. ...
VincentVanNo's user avatar
1 vote
1 answer
40 views

Trying to get and arrange data from firebase

I'm trying to arrange my chats gotten from firebase into and object. I get the chats then try to arrange it into an object which contains a the chat object and the receiver. This code arranges the ...
MobileGamer's user avatar
1 vote
1 answer
246 views

React Native Unable to fetch multiple documents data from Firebase firestore

App.js File this is App.js file, Please check the below code and correct me I don't have any idea how to solve this issue. Thank you in advance. .doc("2E3kDAa0QzqoQuoBK1T9", "...
Rainul Hassan's user avatar