missing or insufficient permissions. firebase code example
Example 1: Uncaught (in promise) FirebaseError: Missing or insufficient permissions.
When you look at your Firestore rules, they should match:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read;
allow write: if false;
}
}
}
If you do not allow read, you may see this issue in the client.
Example 2: Uncaught Error in onSnapshot: FirebaseError: Missing or insufficient permissions.
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read;
allow write: if false;
}
}
}
Example 3: error: insufficient permissions for device
sudo adb start-server
Example 4: firestore missing or insufficient permissions
service cloud.firestore {
match /databases/{database}/documents {
match /landmarks/{landmark} {
allow read;
}
match /cities/{city} {
allow read, write: if <condition>;
}
}
}
Example 5: error: insufficient permissions for device
adb kill-server