简体   繁体   English

Firebase CloudFirestore PERMISSION_DENIED

[英]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.

相关问题 Firebase 应用内消息传递 PERMISSION_DENIED - Firebase In App Messaging PERMISSION_DENIED Android Firebase PERMISSION_DENIED 原因 API_KEY_SERVICE_BLOCKED - Android Firebase PERMISSION_DENIED reason API_KEY_SERVICE_BLOCKED Android客户端上的Firestore collectionGroup PERMISSION_DENIED - Firestore collectionGroup PERMISSION_DENIED on Android Client GoogleJsonResponseException 403禁止PERMISSION_DENIED - GoogleJsonResponseException 403 Forbidden PERMISSION_DENIED FirebaseFirestoreException:PERMISSION_DENIED:缺少权限或权限不足 - FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions Firebase 应用内消息传递 - Android 中的 PERMISSION_DENIED(请求被阻止的问题) - Firebase In-App Messaging - PERMISSION_DENIED (Requests blocked issue) in Android Android 启用 Firestore:com.google.firebase.firestore.FirebaseFirestoreException:PERMISSION_DENIED:缺少或不足的权限 - Android with Firestore enabled: com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions PersonAPI Google+“ PERMISSION_DENIED”错误 - PersonAPI Google+ “PERMISSION_DENIED” Error firestore:PERMISSION_DENIED:权限缺失或不足 - firestore: PERMISSION_DENIED: Missing or insufficient permissions 虽然授予了权限,但ContextCompat.checkSelfPermission()返回PERMISSION_DENIED - ContextCompat.checkSelfPermission() returns PERMISSION_DENIED although Permission is granted
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM