相关疑难解决方法(0)

Cloud Firestore:权限丢失或不足

我得到了(在Android上):

com.google.firebase.firestore.FirebaseFirestoreException:PERMISSION_DENIED:权限丢失或不足

使用这些安全规则:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if request.auth != null;
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

我的应用程序似乎使用正确的身份验证FirebaseAuth,因为mFirebaseAuth.getCurrentUser().getUid()返回正确的用户ID.

有什么我做错了吗?

android firebase firebase-authentication google-cloud-firestore

8
推荐指数
1
解决办法
4754
查看次数