Skip to content

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

Answered by anhnch
anhnch asked this question in Q&A
Discussion options

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: 5 comments

Comment options

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

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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
5 participants