8

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"
  }
}
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Andre
  • 562
  • 2
  • 7
  • 18
  • If my answer addressed your question, please consider accepting and up-voting it. If not, let me know so that I can improve my answer. – Monali Ghotekar Feb 08 '22 at 09:40
  • @MonaliGhotekar Can't you integrate App Check with the other method ([App Attest](https://firebase.google.com/docs/app-check/ios/app-attest-provider?hl=en&authuser=0)) instead? – Eric Jul 18 '22 at 19:01

2 Answers2

5

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

  • Navigate to App Check section of firebase console
  • Switch to Apps tab
  • Select the iOS app that you would like to integrate DeviceCheck provider with
  • Select DeviceCheck
  • Provide the private key you created in the previous step AppCheck
  • You can find you private key Id in your Apple developers account
  • Save

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

  • Navigate to App Check section of firebase console
  • Switch to Apps tab
  • Select the iOS app that you would like to integrate AppAttest provider with
  • Check AppAttest and save AppCheck
  • Save
Muhammad Numan
  • 23,222
  • 6
  • 63
  • 80
1

Register your apps to use App Check with the DeviceCheck provider in the Project Settings > App Check section of the Firebase console. You will need to provide the private key you created in the previous step.

You usually need to register all your project's apps, because once you enable enforcement for a Firebase product, only registered apps will be able to access the product's backend resources.

You can refer to the document for more information.

Monali Ghotekar
  • 359
  • 1
  • 7