[英]Firebase CloudFirestore PERMISSION_DENIED
I have been using Firebase's Realtime Database for a long time and thinking to try out the new Database because it is scalable and more efficient in querying data but i have this message from my LogCat 我一直在使用Firebase的实时数据库很长时间了,并考虑尝试新的数据库,因为它可伸缩且在查询数据时效率更高,但是我从LogCat收到了此消息
PERMISSION_DENIED: Missing or insufficient permissions.
Even though i have user authentication logged in when writing the data i still get this message. 即使在写入数据时登录了用户身份验证,我仍然会收到此消息。
Thanks in advance 提前致谢
Set the rules in firestore. 在Firestore中设置规则。 I mean, set the read and write rules to anyone, simply change the condition in fire store rules.
我的意思是,将读写规则设置为任何人,只需更改火灾存储规则中的条件即可。
The default rules on the Firestore database are: allow read, write: if false; Firestore数据库上的默认规则是:允许读取,写入:如果为false;否则为false。 which means you can't read or write to it.
这意味着您无法对其进行读写。 Change it to: allow read, write: if request.auth != null;
更改为:允许读写:if request.auth!= null;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.