如何在Kotlin android项目Iam Newbie中以数据存储区模式使用Firestore。今天,我在firebase中看到了新的文本字符串:
项目已在数据存储模式下切换到Cloud Firestore。此模式仅适用于Google 云平台。
进入Google Cloud Platform后,看到新界面。
现在我想了解如何连接到项目上的数据存储
此代码现在可以正常工作吗?
fun getNotesList(): Task<QuerySnapshot> {
return firebaseFirestore.collection("notes")
.orderBy("title", Query.Direction.DESCENDING)
.get()
}