简体   繁体   English

无法获得firebase数据库IOS的权限

[英]Can't get permission to firebase database IOS

I can't get permission to database. 我无法获得数据库的许可。

In xcode console I am getting this message: 在xcode控制台中,我收到此消息:

[Firebase/Database][I-RDB038012] Listener at /skelbimai failed: permission_denied [Firebase /数据库] [I-RDB038012] / skelbimai的监听器失败:permission_denied

So I went to firebase database, then Rules and changed like this: 所以我去了firebase数据库,然后规则和改变如下:

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

And still I cant read write from database. 而且我仍然无法从数据库中读取写入内容。 Where I missed something? 哪里错过了什么?

The rules you changed are the rules for Cloud Firestore, while the error message is coming from the Firebase Realtime Database. 您更改的规则是Cloud Firestore的规则,而错误消息来自Firebase实时数据库。

You'll need to switch your console from the Realtime Database to Firestore. 您需要将控制台从实时数据库切换到Firestore。 To do so: 为此:

  1. Go to the Firebase database console 转到Firebase数据库控制台

  2. Select Realtime Database 选择实时数据库

From here on the console will stick to showing the realtime database, unless you switch again. 从这里开始,控制台将坚持显示实时数据库,除非你再次切换。

If you already have the console open on one database, you can switch to the other by clicking on the dropdown next to Database and selecting the database you want to manage: 如果您已在一个数据库上打开控制台,则可以通过单击“ 数据库”旁边的下拉列表并选择要管理的数据库来切换到另一个数据库:

在此输入图像描述

To grant full access to anyone, use these rules: 要授予任何人完全访问权限,请使用以下规则:

{
  "rules": {
    ".read": "true",
    ".write": "true"
  }
} 

Please only use this for early development stages, as having your entire database publicly read-and-writeable makes it very easy to abuse. 请仅在早期开发阶段使用此功能,因为将整个数据库公开读写可以很容易地被滥用。

Try Following 试试以下

Goto Database -> Rules then 转到Database -> Rules然后Database -> Rules

copy and paste it 复制并粘贴它

{
  "rules": {
    ".read": "true",
    ".write": "true"
  }
} 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法获得iOS上的Facebook publish_action权限 - Can't get the Facebook publish_action permission on iOS 为什么我的iOS应用程序无法从Firebase数据库读取? - Why can't my iOS application read from Firebase Database? Firebase ios无法获取时间戳[Firebase / Database] [I-RDB038012] / serverTimestamp处的侦听器失败:Permission_denied - Firebase ios unable to get timestamp [Firebase/Database][I-RDB038012] Listener at /serverTimestamp failed: permission_denied Firebase数据库setValue:或removeValue失败:permission_denied iOS - Firebase Database setValue: or removeValue failed: permission_denied iOS 无法获取图像URL放入Firebase中的数据库 - Can't get image URL to put to Database in Firebase 我无法从Firebase数据库获取数据作为子类对象 - I can't get the data from firebase database as a subclass object Firebase iOS-快照未更新,但数据库已更新? - Firebase iOS - Snapshot isn't updated but database is? 如果托管iOS应用没有位置权限,WebView页面能否获取位置? - Can a WebView page get location if the hosting iOS app doesn't have location permission? (ios,swift) firebase 实时数据库在所有连接时无法写入 - (ios,swift) firebase realtime database can't write when everything is connected iOS Firebase / Firestore权限被拒绝 - iOS Firebase/Firestore Permission Denied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM