📌  相关文章
📜  如何从登录到 firestore 的用户中检索和显示数据 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:56.627000             🧑  作者: Mango

代码示例1
db.collection("users").document(FirebaseAuth.getInstance().getCurrentUser().getUid())
        .get().addOnCompleteListener(task -> {
    if(task.isSuccessful() && task.getResult() != null){
        String firstName = task.getResult().getString("First Name");
        String email = task.getResult().getString("Email");
        String phone = task.getResult().getString("Phone");
        //other stuff
    }else{
        //deal with error
    }
});