小编D. *_*Giu的帖子

将 Firestore 数据加载到 json 中

是否可以将我的 Firestore 数据加载到包含在我实际应用中的 json 中?

文档参考成分参考 = db.document("res/ingredientsList");

    ingredientsRef.get().addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {
        @Override
        public void onComplete{@NonNull Task<DocumentSnapshot> task) {
            if(task.isSuccessful() {
                DocumentSnapshot ingredientdocument = task.getResult(); 
Run Code Online (Sandbox Code Playgroud)

}

在这个 if 子句中应该有机会以某种方式将我的 firestore 的数据加载到我的 json 中......谢谢帮助

java android json firebase google-cloud-firestore

5
推荐指数
1
解决办法
159
查看次数

标签 统计

android ×1

firebase ×1

google-cloud-firestore ×1

java ×1

json ×1