4

When I run my app from xcode on my iPhone 12 Device, I get an error when trying to generate the Firebase AppCheck Token from below method. The error code is 0 and there is no description in the error object.

AppCheck.appCheck().token(forcingRefresh: false)
Shade
  • 9,936
  • 5
  • 60
  • 85
hblk
  • 81
  • 6

1 Answers1

3

Just found out this might be cause by one of two issues below

  1. Enable AppAttest in Capabilities
  2. Set AppAttest environment to production even in testing since The App Check beta currently doesn't accept tokens generated in the App Attest sandbox environment.

https://firebase.google.com/docs/app-check/ios/app-attest-provider#install-sdk

hblk
  • 81
  • 6