Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play store warning to migrate to Play Integrity API: Critical issues for com.google.android.gms:play-services-safetynet:18.0.1

We got a warning that we should migrate to Play Integrity API. We use only recaptcha from this dependency. In docs I didn't find anything in Play Integrity API which replaces recaptcha from safetynet. Do you have any idea what should we do in this case?

enter image description here

like image 966
Aleksandr Urzhumtcev Avatar asked Dec 08 '25 15:12

Aleksandr Urzhumtcev


2 Answers

You need to use 'com.google.android.gms:play-services-recaptcha' and remove safetynet unless you need any other api related to SafetyNet (in that case, you need Play Integrity API too)

This is about migrating to ReCaptcha Enterprise: https://cloud.google.com/recaptcha-enterprise/docs/migrate-recaptcha

And for you android code, some changes are needed for getting the token: https://cloud.google.com/recaptcha-enterprise/docs/instrument-android-apps

Essentially you need to call Recaptcha.getClient(activity).init(siteKey) and use the result in calling Recaptcha.getClient(activity).execute(handle, action).

like image 128
mrahimygk Avatar answered Dec 12 '25 04:12

mrahimygk


here's the final response from Google Play Developer Support after six months of waiting:

As per technical team, your intuition is correct. The SafetyNet Attestation API is different from the SafetyNet reCAPTCHA API. In this case, you can safely ignore the SafetyNet Attestation API's deprecation announcements.

like image 37
Helen Avatar answered Dec 12 '25 06:12

Helen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!