Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

firestore: PERMISSION_DENIED: Missing or insufficient permissions

  • 0

I am getting the Error PERMISSION_DENIED: Missing or insufficient permissions.

for the below code on else statement

    .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {
        public void onComplete(@NonNull Task<QuerySnapshot> task) {
             if (task.isSuccessful()) {
                 for (DocumentSnapshot document : task.getResult()) {
                     s(document.getId() + " => " + document.getData());
             } else {
                 s("Error getting documents."+ task.getException());
Click to rate this post!
[Total: 0 Average: 0]
Share This Post
  1. It simply works for me.

    Go in Database -> Rules ->

    Change allow read, write: if false; to true;

    Note: This completely turns off security for the database!

    Making it world writable without authentication!!! This is NOT a solution to recommend for a production environment. Only use this for testing purposes.

    • 0
Leave an answer

Leave an answer