Skip to content
Advertisement

Tag: google-cloud-firestore

Cannot resolve method ‘setTimestampsInSnapshotsEnabled’ in ‘Builder’

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,

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

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

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

Advertisement