Replies: 1 comment 2 replies
-
That's a networking error, there is something wrong with your local network. Here is what it looks like when I test on my local network:
And when I try it from the android emulator running on a test VM, it also works:
If you cannot pass traffic to the appcheck API server via your local network path, you won't be able to use AppCheck |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,

I want to use Firebase app check to add a protection layer on the backend's rest APIs , so that only requests from my app are accepted .
My firebase project has 2 apps, Android and iOS. I've read and followed every step on the docs here and also here ( to setup the android and iOS projects)
My problem is even if I've followed all the steps and installed the sdk correctly, the documentation doesn't precise exactly how to use the app check sdk for react native, I've tried to follow the web + (Android || iOS) instructions but I always get errors obviously related to the code becasue the configuration isn't right ( because ther's no examples on the docs )
Here is a little code snippet of how I'm trying to activate app check on android then getting the token :
FB_appCheck.appCheck().activate('ignored', false).then((res) => { FB_appCheck.appCheck().getToken().then((res) => { console.log("generated token : ", res) }) })
I know that more steps have to be made for debugging using Debug Providers , but the main issue is that there aren't any documentation or example on how toi set everything up correctely on react native apps
here is the latest error I'me getting while trying to get the token:
[appCheck/token-error] java.net.UnknownHostException: Unable to resolve host "firebaseappcheck.googleapis.com": No address associated with hostname.
If anyone faced the same issue before and have an exaple of how to use appcheck on react native that would be a big help, thank you.
Beta Was this translation helpful? Give feedback.
All reactions