Cloud Firestore:权限丢失或不足

Dan*_*e B 8 android firebase firebase-authentication google-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.

有什么我做错了吗?

Jéw*_*ôm' 1

看来这是一个Firestore问题(今天的测试版),而不是在客户端。


归档时间:

查看次数:

4754 次

最近记录:

7 年,7 月 前