Skip to content

Can't make App Check work with Firestore on iOS #6021

Answered by anhnch
anhnch asked this question in Q&A

You must be logged in to vote

[SOLVED]
When I looked into the XCode logs I found this

[Firebase/Firestore][I-FST000001] AppCheck failed: 'The operation couldn’t be completed. The server responded with an error: 
 - URL: https://firebaseappcheck.googleapis.com/v1beta/projects/<my-project>/apps/1:<my-app-id>:ios:<id>:exchangeDeviceCheckToken 
 - HTTP status code: 403 
 - Response body: {
  "error": {
    "code": 403,
    "message": "App attestation failed.",
    "status": "PERMISSION_DENIED"
  }
}

I went to DeviceCheck settings in the Firebase console, checked the Auth key and found that I uploaded the wrong p8 file.

I went back to the Apple Certificates, Identifier & Profile and I downloaded the key, then uploaded it …

Replies: 6 comments

You must be logged in to vote
0 replies
Answer selected by anhnch

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants