0

I have been working on the Flutter app with firebase and the app was working well but today when I trying to retrieve the data from using snapshot I got this exception.

FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.)

is there any update on firebase i have to do or what ?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Ahmde-7
  • 1
  • 2
  • Does this answer your question? [Permission denied using Firebase database with Flutter](https://stackoverflow.com/questions/50924437/permission-denied-using-firebase-database-with-flutter) – Haany Ali May 09 '22 at 09:38
  • where i can edit the security rule ??? with this code { “rules”: { “.read”: true, “.write”: true } } – Ahmde-7 May 09 '22 at 10:59

1 Answers1

1

When you create a project and set Firestore access it test mode, it sets the database up to allow public access for only a month. If this suddenly happened without a change on your side, it could be that your security rules expired.

Now would be a good moment to implement proper security rules for your data, as leaving all data publicly accessible is a recipe for future problems.

So learn how to secure the data, have a look at the documentation on security rules, this more technical documentation, and also see:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807