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

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 ?



Solution 1:[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:

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Frank van Puffelen