App-Check: Adding a Debug Token to iOS #6992
Replies: 2 comments 2 replies
-
My guess is your API key is restricted too much, that's what a cursory web search appears to indicate: https://search.brave.com/search?q=firebase+%22reason%22%3A%22API_KEY_IOS_APP_BLOCKED%22%2C You are correct the on-ios section of the docs suffers from a copy-paste error, however the text would be correct with the single correction of the word |
Beta Was this translation helpful? Give feedback.
-
I have the same issue on iOS simulator. I'm using Expo (managed) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Firebase App Check works perfectly on Android devices, Android emulators and iOS devices. However, I could not get an iOS simulator to pass the check. It throws the error message:
I followed the instructions under https://rnfirebase.io/app-check/usage#configure-a-custom-provider. For the iOS debug token, I used a token generated from the Firebase console. Some posts suggest using a token included in the error message thrown when the app check fails. I could not find this token. Running the app using
npx react-native run-ios
throws the error message above, which does NOT include a token!I tried running the app using Xcode. It failed. However, I could not find a suggested token. I am NOT familiar with Xcode. It would be great if you can tell me where to find it (how to access the relevant log having the generated token.)
App.js:
By the way, on the documentation, the iOS section for manually setting up a debug token https://rnfirebase.io/app-check/usage#on-ios is an exact copy of the 1st paragraph of the Android section! I think it has nothing to do with iOS. It needs to be updated. I started a PR to suggest deleting it. However, I thought of checking first (in this post) if there is a manual method and if there is, the details of it.
Beta Was this translation helpful? Give feedback.
All reactions