iosgoogle-cloud-firestoreswiftuifirebase-app-check

How do I overcome AppCheck failed on iOS 15.2 Firebase v8.11.0?


Has anyone encountered this issue with Firebase version 8.11.0. I am unsure how to suppress it for my app. Do I need to integrate AppCheck into my project?

[Firebase/Firestore][I-FST000001] AppCheck failed: 'The operation couldn’t be completed. Too many attempts. Underlying error: The operation couldn’t be completed. The server responded with an error: 
 - URL: https://firebaseappcheck.googleapis.com/v1beta/projects/............
 - HTTP status code: 400 
 - Response body: {
  "error": {
    "code": 400,
    "message": "App not registered: ...............",
    "status": "FAILED_PRECONDITION"
  }
}

Solution

  • I had the same issue I solved by adding a p8 file to the firebase app check like this

    Create a private key for DeviceCheck

    Upload key to DeviceCheck in Firebase console

    AppAttest

    AppAttest is another built-in AppCheck provider for Apple platforms. Follow below steps to integrate AppAttest in your apps.

    You will need Xcode 12.5+ to use App Attest.

    Add AppAttest to your firebase project