Ale*_*cev 17 sdk android warnings google-play safetynet
我们收到警告,要求我们迁移到 Play Integrity API。我们仅使用此依赖项中的 recaptcha。在文档中,我没有在 Play Integrity API 中找到任何可以替换 safetynet 中的 recaptcha 的内容。您知道在这种情况下我们应该做什么吗?
您需要使用“com.google.android.gms:play-services-recaptcha”并删除 safetynet,除非您需要与 SafetyNet 相关的任何其他 api(在这种情况下,您也需要 Play Integrity API)
这是关于迁移到 ReCaptcha Enterprise: https://cloud.google.com/recaptcha-enterprise/docs/migrate-recaptcha
对于您的 android 代码,需要进行一些更改才能获取令牌: https: //cloud.google.com/recaptcha-enterprise/docs/instrument-android-apps
本质上,您需要调用Recaptcha.getClient(activity).init(siteKey)并在调用中使用结果Recaptcha.getClient(activity).execute(handle, action)。