firebase - PERMISSION_DENIED:权限不足或不足- flutter

标签 firebase flutter dart google-cloud-firestore firebase-security

我的终端返回以下错误:
PlatformException(PlatformException(执行getDocuments时出错,PERMISSION_DENIED:权限缺失或不足。,null)
已经检查了我的Google开发者控制台设置,但找不到解决方案。

最佳答案

确保Firebase数据库上的安全规则允许您读取和写入数据。
IE:

service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write;
    }
  }
}

关于firebase - PERMISSION_DENIED:权限不足或不足- flutter ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62707156/

相关文章:

reactjs - 如何使用 React Redux 实现 Firebase 身份验证?

ios - 没有这样的模块 'FirebaseDatabase'

google-maps - flutter 谷歌地图。展示风格。我怎样才能让它发挥作用?

dart - 当应用进入前台或后台时,AppLifcycleState.didChangeLifecycleState( ) 函数不会被调用

javascript - Angular 网站无法在移动设备上打开

angular - 未处理的 promise 拒绝 : this. _next 不是函数:@angular/fire/messaging 中的区域

android - 在Flutter文本中添加特殊字符如何在Flutter中显示文本中的特殊字符?

flutter - 如何使用 pushNamed 传递的参数?

loops - 无法在 Flutter 中过滤位置

web-applications - 是否可以在网络应用程序中写入文件?