We are able to test firebase app check using debug provider on a real device by
It has a couple of problems
Am I missing something from documentation? I am sure many other might have faced this issue.
need some help here.
Thanks.
I also faced such a problem. I looked at the Firebase App Check code and this is what I got:
val persistenceKey = FirebaseApp.getPersistenceKey(
FirebaseApp.DEFAULT_APP_NAME,
FirebaseOptions.fromResource(context)
)
val prefsName = String.format("com.google.firebase.appcheck.debug.store.%s", persistenceKey)
val sharedPreferences = context.getSharedPreferences(prefsName, Context.MODE_PRIVATE)
val secretKey = "com.google.firebase.appcheck.debug.DEBUG_SECRET"
sharedPreferences.edit().putString(secretKey, "YOUR TOKEN").apply()
FirebaseApp.initializeApp(context)