I have integrated the firebase app check in my android project and followed all the requisites that are mentioned here. Additional to this I have also added the setUp code
val firebaseAppCheck = FirebaseAppCheck.getInstance()
val factory = if (BuildConfig.DEBUG) {
DebugAppCheckProviderFactory.getInstance()
} else {
PlayIntegrityAppCheckProviderFactory.getInstance()
}
firebaseAppCheck.installAppCheckProviderFactory(factory)
Also the code below to fetch the token
.getAppCheckToken(false)
.addOnSuccessListener {token->
}
.addOnFailureListener { exception ->
}
I am running it in debug app and have added all the debug token to my console by following this.
But the problem is I am always getting an exception like this
Error returned from API. code: 403 body: Requests to this API firebaseappcheck.googleapis.com method google.firebase.appcheck.v1.TokenExchangeService.ExchangeDebugToken are blocked.
Not sure what I am doing wrong here. I have crossed checked all the Ids and SHA-fingerprints that I have added to firebase console and they are all correct.