I am trying to create a register activity to allow a user to register however I keep getting the error: Cannot resolve method ‘setTimestampsInSnapshotsEnabled’ in ‘Builder'” It’s only the section which has the setTimestampsInSnapshotsEnabled that is giving me the issue. Do I need an implementation? Here is my Java code: Answer If I look at the current documentation for FirebaseFirestoreSettings.Builder,
Tag: google-cloud-firestore
How to add new key to map in Firestore
I want to add new key to a map. memberFees is a field of a document under collection named Faculty I want to store only the key of each member fee inside the memberFees map. Here is an example of my memberFees map: I only added that keys in the example manually. This is what I did: This code throws
How to make auto refreshing on recyclerview Android while getting data from firebase firestore
I added a swipe SwipeRefreshLayout but the data only show when I swipe down to refresh. If I don’t refresh the data didn’t show. I want an auto refresh on the background when an activity is created. This is my XML After getting data from the firebase I added it to the list and add that list into the adapter.
how can i get all the data in document firestore?
current i am working to my school project using android studio, it is an attendance system where I store my data to Firestore and the user are able to download/export the data to become Excel file. What I am trying to do is how can I get the all data in a single document of a Collection in firestore here’s
Read Firestore Data in Android Java
i am working on android application and i am trying to read data from the firestore. One of the key contains further object data which i want to read. i was able to read the data for purchases but purchases has further array data with contains products keys. i am unable to read that. i want a simple solution, no
Firestore does not query on every Listview custom adapter
So this is the source code of my adapter: What I am trying to do is, change the value of two of my Textviews, consignor_cList and recipient_cList from a firestore query. Initially, both these textviews are having text value as String uid of my firestore document. I want to use these id, query the whole document and use the document
How to give read access permission for Firestore imageurl in Java
I am able to access the Firestore image url on my browser window. I want to convert this image url into BufferedImage after reading I have to find sub-image to get barcode value presented on my image. Here is the code, I have connected with my bucket using Firestore and selecting few images from bucket based on conditions. And rules
How to receive additional information by using firebase in android
When the user signs up the first time, I use sendEmailVerification by the following code: and here is useAccount.java Firebase information after signing up and as you can see All the information was received accurately. But I want to receive additional information when user first use the app. SO i tried to receive additional info by following code and this
How to move all records from one location to another in Firestore Database (Android Studio)
How to move all Firebase database records (not a specific record with an id) from a specific location to another. Code for moving certain records: Database structure: , Answer Method: Move data from Firestore Database (not Realtime Database) to new collection in Android Studio
Event Listener in Firestore doesn’t see field updates in documents inside collection. Android, Java
I have next firestore scheme: collection “users” – document user_id – collection “trips” – document trip_id – collection “requests” – document request_user_id with fields: and boolean field <is_accepted> On one of my pages I want to listen to realtime updates of requests: if <is_accepted> changes from 0 to 1(it means user is accepted for a trip). I have written EventListener