RM2
RM2

Reputation: 53

PERMISSION_DENIED: Missing or insufficient permissions - Flutter

My terminal returns the following error:

PlatformException (PlatformException(Error performing getDocuments, PERMISSION_DENIED: Missing or insufficient permissions., null)

Already checked my Google dev console settings and I can't find a solution.

Upvotes: 1

Views: 1913

Answers (1)

Rony M.
Rony M.

Reputation: 405

Make sure the security rules on Firebase's database allows you to read and write data. I.E:

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

Upvotes: 2

Related Questions