Reputation: 49
The code was work well but suddenly when I try to write on firestore in my emulators I got this error
firestore.rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
allow write: if true;
}
}
I add a plugin same problem.
Upvotes: 0
Views: 134
Reputation: 8246
You have an error in you rules. should be
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
you can learn more about rules here
Upvotes: 2