I’m struggling for a few days now on using firestore emulator in a react-native project Whenever the code reaches a firestore hit the application crash without any log (RN side). Now I know RNFirebase is well installed as I can hit firestore real server. I’ve checked the logcat and it gives me this error. Here is my packages.json And I
Tag: google-cloud-firestore
Exclude date in timestamp from Firestore
I just want to ask, is there a way to exclude the date in Timestamp from Firestore? Like, I only want the hour and minutes to be displayed. For example, the output of my code below is “Date: Tue Aug 24 23:59:00 GMT+08:00 2021” And I only want the “23:59:00” part to be displayed. Answer What you are storing in
How to access array data from Firebase Firestore?
I have a Firebase Firestore database that looks like this: And I want to store that data in my ArrayList<> If You are not understanding anything you can check my previous question Question Link StackOverFlow Answer To display the of your favFoods array, please use the following lines of code: So as you can see, you should call get() and
Limiting document fields and race conditions – Firebase Firestore Android
I am using Firestore for Android right now; recording some data and writing it to documents. Instead of creating document every time, I want to limit documents like 10 or some x number of fields. If a user writes to document and field count reaches x, the user will create new document in the same collection. So my question is:
Getting error : Could not deserialize object. Failed to convert a value of type java.lang.String to long
enter image description hereI have tried changing values many times. Now I have the same values in Firebas. It’s working if I give the values manually in code, but it’s not working while I try to get the info from Firestore. But still, I’m getting this error continuously: That’s my Model’s code } My adapter code } Main Activity }
get int data from firestore
im trying to get int data from firestore but before that app crashes i dont know why when i try it as string it work i get it and i can list it but when i try it int app crashes even before get data here is my code second part is my adapter logchat said 2 line is wrong
Trying to run Firestore emulator on Gitlab CI pipeline gives “java is not installed” error
When trying to run Firestore emulator in a Gitlab CI/CD pipeline I get the following error: Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/ The question is, how do I install java in this env? I found a similar post, but there’s no mention of the need of installing java, so I’m wondering
Android Firestore subcollections into RecyclerView
I am currently working on a Rental Car app in Java Android Studio. For the project database, I am using Cloud Firestore. My database is structured like so: Subcollection: The first image is represented by the collection of Cars with multiple documents with random ID (each represents a car). Every car has a unique subcollection called bookings where are saved
Why do we have to call getCurrentUser() several times Firebase?
I am creating a Journal app. I am currently working on the functionality for if the user is already logged in—bypass the “get started/log in activities” In the video I am watching to create a journal app, the instructor calls mUser = firebaseAuth.getCurrentUser(); several times. He calls it in onStart(), in onCreate() and in onAuthStateChanged(). I can understand why we
Boolean setters and getters not updating upon button click?
So I am currently developing a date android application, now what I have done here is created a simple algorithm called similarDatesFunction this function is responsible for retrieveing data and matching it with the user input, for every match a counter will be placed, if this exceeds 6 counters also known as the offPeak variable it will set a false