Skip to content

[firebase-app-check] Firestore: PERMISSION_DENIED error (android) #88

Closed
@gookhans

Description

@gookhans

I am using app-check for Firestore and Storage. I have a problem with Firestore(only android). When I send query to enforced Firestore, I get: Error: Uncaught (in promise): Error: PERMISSION_DENIED: Missing or insufficient permissions.

firestore and storage works fine with app-check on iOS,
storage works with app-check on Android.

My code:

   if (isAndroid) {
        AppCheck.setProviderFactory();
    }

    firebase()
        .initializeApp()
        .then((app) => {
            if (isAndroid) {
                firebase().appCheck().activate(true);
            }
    });

I even try run this code in angular main.ts for early activate, but I get same error.
What is the cause of the problem?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions