0

I am following the documentation https://rnfirebase.io/app-check/usage to use appcheck on React Native.

When I am testing in on my Emmulator, It is not responding to the realtime database requests.

All the requests are showing as unverified requests in firebase appcheck console.

When I went through the documentation : https://rnfirebase.io/app-check/usage#activate

It is written that :

On Android, App Check is not activated until you call the activate method. The provider is not configurable here either but if your app is "debuggable", then the Debug app check provider will be installed, otherwise the SafetyNet provider will be installed.

But process not given, how to activate ?

can some one please help me.

1 Answers1

0

activate api is documented here https://rnfirebase.io/reference/app-check#activate

You can check a sample implementation in their e2e test script.

try {
  await firebase.appCheck().activate();
  // await firebase.appCheck().activate('ignored');
  // await firebase.appCheck().activate('ignored', false);
} catch (e) {
  console.log(e);
}
vinayr
  • 11,026
  • 3
  • 46
  • 42