I am saving a document to Google Cloud Firestore using Google Cloud Functions in Java language. I want to add a listener to future here. I am unable to find a Runnable which can serve the purpose here. I know I can call future.get() method to hold the execution and get the WriteResult object but I don’t want to do
Tag: google-cloud-firestore
What Runnable to Pass when adding a listener to ApiFuture
React native firebase crashes when using emulator
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
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
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
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
Get the named of Collections from Document on Cloud Firestore
I want to get collections (Col01, Col02, Col03) from the document (Doc01). How can I approach this? Check the attached image. Thanks. Image
Is firestore callback method run in a separate thread?
I am fetching Firestore data through RX observable. Is it required to subscribe to it in a separate thread or Firestore callback run off the main thread by default? Also please share any references …
How to get the data from x document and upload it to a new document called ‘name’ and then delete the old one in java
How to get the data from x document and upload it to a new document called ‘name’ and then delete the old one in java const firestore = firebase.firestore(); // get the data from ‘name@xxx.com’ …