Home > Mobile >  Listen for Query failed due to insufficient user permision
Listen for Query failed due to insufficient user permision

Time:06-22

So I want to build an chat app. Now for a month like so my app was working fine but suddenly its showing the following error while querying and data from Firebase.

W/Firestore(11249): (24.1.2) [Firestore]: Listen for Query(target=Query(chatRoom where usersarray_containsSayan Banerjee order by name);limitType=LIMIT_TO_FIRST) failed: Status{code=PERMISSION_DENIED, description=Missing or insufficient permissions., cause=null}

The above error shows when I want to query the list of users with whom I used to chat. For a split second the desirable list is displayed, but then immediately the above error shows and I get a blank screen.

Similar error arise whenever I try to query the list of users and all that.

I am attaching the GitHub repo link for my project too. I would be highly thankful if you help me.

GITHUB REPO: https://github.com/SayanBanerjee09082002/chatapp

CodePudding user response:

Probably somebody used test mode when the database was created.

Your data is open by default to enable quick setup. However, you must update your security rules within 30 days to enable long-term client read/write access.

  • Related