google-cloud-firestore

Received an exception FAILED_PRECONDITION: The query requires an index [duplicate]

孤街浪徒 提交于 2020-02-16 10:43:34
问题 This question already has an answer here : Firestore whereEqualTo, orderBy and limit(1) not working (1 answer) Closed 5 days ago . I create the project in firebase using a cloud database and I want to compare empUID field which store in a document with current UID . I created one query which gets the data when current UID and empUID is match but failed to get data. Please guide is my Query right or am I need to changes in my code MY Subcollection Path Employer(root Collection)-->Job Post(Sub

Received an exception FAILED_PRECONDITION: The query requires an index [duplicate]

夙愿已清 提交于 2020-02-16 10:40:35
问题 This question already has an answer here : Firestore whereEqualTo, orderBy and limit(1) not working (1 answer) Closed 5 days ago . I create the project in firebase using a cloud database and I want to compare empUID field which store in a document with current UID . I created one query which gets the data when current UID and empUID is match but failed to get data. Please guide is my Query right or am I need to changes in my code MY Subcollection Path Employer(root Collection)-->Job Post(Sub

Using Flutter Firestore plug in, do something for each sub collection in a document

心不动则不痛 提交于 2020-02-16 10:38:39
问题 To help me better understand Flutter and Firebase, I'm making a list sharing app. I'm working on the list home screen that will show a reorderable list tile view with a tile for each of the users' lists, I have not began to work on whats inside of these lists. I have firestore set up so that each list is a sub collection, now I want to create a tile for each sub collection in that user's document ( a list of that user's lists). I'm having a tough time telling flutter to do something for each

Using Flutter Firestore plug in, do something for each sub collection in a document

点点圈 提交于 2020-02-16 10:37:13
问题 To help me better understand Flutter and Firebase, I'm making a list sharing app. I'm working on the list home screen that will show a reorderable list tile view with a tile for each of the users' lists, I have not began to work on whats inside of these lists. I have firestore set up so that each list is a sub collection, now I want to create a tile for each sub collection in that user's document ( a list of that user's lists). I'm having a tough time telling flutter to do something for each

Trying to list collection of Firestore Database

房东的猫 提交于 2020-02-16 00:25:41
问题 I'd like to list of the collection of Firestore database inside Ionic4 app so I use the doc in the section listCollection so I applied the example code in my code : this.afs.firestore.listCollections().then(collections => { for (let collection of collections) { console.log(`Found collection with id: ${collection.id}`); } }); here is my constructor : constructor(private router: Router, private afs: AngularFirestore, private fireauth: AngularFireAuth) { } And I get this error : error TS2339:

How to check for time sync in Ionic 4 app to prevent time cheat/fake by user?

那年仲夏 提交于 2020-02-08 10:16:12
问题 I am developing an App in Ionic 4 using Angular and I am using Firebase to store and retrieve data using AngularFire. My App displays list of events from database that span over two days from current time and has an option for registering for events. Events that had start time in past and start time in future(3+ days from now) are not shown in the App. Currently, I am using client's system time but the problem with this is user can change device time to past to see all the events in the past

Adding Cloud Firestore Documents Into an ArrayAdapter

℡╲_俬逩灬. 提交于 2020-02-08 02:41:27
问题 Im trying to add cloud database Documents into an ArrayAdapter for my card stack. I have the Collection "Users" and Document "userID" which contains the users name and gender. Im trying to add the users name to a card stack. So far Iv been able to add the users to a list but cannot get them into my cards. When I run the app I get this error: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference This error occurs at Name_On

Getter uid being called on null in flutter fire

為{幸葍}努か 提交于 2020-02-07 02:35:07
问题 I am trying to concatenate two UID's in order to create a chatroom. One uid is being read from firebase while the other is read from the FirebaseAuth.instance. The clientUID is being assigned as it should, as I am passing it to another page on a Text widget. However the chatroom is not being created in the firestore tree so I assume this should be because of the instructor uid. Maybe I am not calling the FirebaseAuth.instance as it should? Code: class ClientiPage extends StatefulWidget {

How to order the documents of firebase?

会有一股神秘感。 提交于 2020-02-07 01:36:53
问题 I want to create a chat app, I have used firebase as well but I can't order documents where when you send a message it doesn't be with the order of the list it goes in a random place. I think this is related to the sort of documents in firebase console if related I want help on how to sort this when a new message comes it will be at the bottom of the list and vice versa. I have tried listview and listview.builder and I have used the reverse property but it didn't work with me . import

How to order the documents of firebase?

China☆狼群 提交于 2020-02-07 01:36:00
问题 I want to create a chat app, I have used firebase as well but I can't order documents where when you send a message it doesn't be with the order of the list it goes in a random place. I think this is related to the sort of documents in firebase console if related I want help on how to sort this when a new message comes it will be at the bottom of the list and vice versa. I have tried listview and listview.builder and I have used the reverse property but it didn't work with me . import