Problem regarding Firestore security rules error of status code: PERMISSION_DENIED and the app on phone cannot retrieve documents okay in simulator
so I’ve published the following security rule
Firebase security rule for users to access other users data
I want my users in my flutter app to be able to access other users recipes if the other user allowed them. I am using Firebase Cloud Firestore as the DB. So if the current user is part of the requested users usersAllowedToRead collection then they can also access the other users recipes.
How to encounter cloud firestore error despite adding security rules
I am a beginner in Flutter x Firebase and been stuck here for last three days. Pls help me resolve this, and explain the reason as well