IOS Programming
firebase: PERMISSION_DENIED: Missing or insufficient permissions
July 28, 2020
0

While Developing IOS App that writes / reads from Firebase, I have found that it was not writing any data in Firebase or can not read data from Firebase, when I saw console, I found a error like “[Firebase/Firestore][I-FST000001] WriteStream (7fea67f13818) Stream error: ‘Permission denied: Missing or insufficient permissions.'”

So, then I have gone to my firebase account, from left side clicked “database”, then clicked the “Rules” tab,
then found:

rules_version = ‘2’;
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}

I replaced it with

rules_version = ‘2’;
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}

Bingo, it solved the problem.
Below is the Screenshot:

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

hitpath API: Read Affiliates Record

<?php $offset = 0; $limit = 10; $url = "http://...

Read more

hitpath API: Read Campaigns Record

<?php $offset = 0; $limit = 10; $url = "http://...

Read more

hitpath API: Read Advertisers Record

<?php $offset = 0; $limit = 10; $url = "http://...

Read more

There are 0 comments

Leave a Reply

Your email address will not be published. Required fields are marked *