I am currently switching our Flutter App from the AppCheck SafetyNet
provider to the PlayIntegrity
Provider.
Now I can't connect to Firebase any longer from all our development devices (real phones, no emulator) as the debug builds are not coming from the PlayStore.
I already set up to use the DebugProvider
and added the DebugToken in Firebase and this is basically working.
When I use the same device with another computer and install the app again, the app is first uninstalled and reinstalled. This wipes all app information from the device and with it the Debug Token. So now I have to set up another debug token in Firebase and the old one is invalid.
Is there any way to provide a specific debug token in Android e.g. via an environment variable or like it is done for Flutter Web, that a specific token can be registered by setting self.FIREBASE_APPCHECK_DEBUG_TOKEN
to the tokenString?
In DebugAppCheckProvider.java it seems there is no way to do this, but perhaps I am missing something?
The DebugProvider
is mentioned in the Documentation always with emulators but not with real devices. Is this the normal way to use App Check when developing or is there another way to use it with my real devices?