Warning! The SafetyNet Attestation API is deprecated and has been replaced by the Play Integrity API. Learn more.

Discontinuing the SafetyNet Attestation API

Stay organized with collections Save and categorize content based on your preferences.

In order to help you safely grow your business, Google builds tools to protect your Android apps and games from abuse. We evolve these solutions as the abuse landscape changes. Delivering on this promise, Google recently announced the Play Integrity API that consolidates multiple integrity offerings (including the SafetyNet Attestation integrity verdict) under a single API.

As we move to further improve the portfolio of anti-abuse solutions, we plan to gradually turn down the SafetyNet Attestation API starting in June 2023. The timeline should give you enough time to migrate to the new Play Integrity API and avoid disruptions to your business.

The Play Integrity API includes all the integrity signals that SafetyNet Attestation offers and more, like Google Play user license and better error messaging. The new API is designed in a future-forward way so that you can easily get new features with little build time required to upgrade.

SafetyNet Attestation deprecation timeline

Dates Milestone What does it mean for you?
June 2022 Announcement You should start integrating with the Play Integrity API as soon as you can. In the meantime, SafetyNet Attestation will continue to work for your app.
June 2023 Migration deadline If you have migrated to the Play Integrity API, SafetyNet Attestation will continue to work on the former versions of your app. You can still detect risky interactions with the previous versions of your app. If you have not migrated, SafetyNet Attestation will no longer work for your app (including the previous versions) and return an error. We will consider that you have migrated if your app calls the Play Integrity API in production.
June 2024 Full turndown SafetyNet Attestation will no longer work for any version of your app. Your app will receive an error.

Setting up your app to use the Play Integrity API

We recommend that you migrate to the Play Integrity API during the first year of the deprecation timeline to avoid any disruptions in detecting risky interactions with your app and fighting abuse.

The two APIs are conceptually similar, so if you’ve already defined your anti-abuse strategy and you’re already using SafetyNet Attestation, the migration is straightforward. You can follow the migration guide and start to set up the Play Integrity API via your Play Console now.

If you are not distributing your app through Google Play, you can still use the Play Integrity API from the Google Cloud Console without creating a Play developer account or publishing a release in Google Play Console by following these steps.

Getting help and sharing feedback

We are here to ensure you have a smooth migration. If you have any issues or questions, please visit the Play Console Help Center.

We also want to hear your thoughts about building better integrity services, so please share feature requests and feedback in your Play Console. To do this, click the question icon at the upper right corner of Play Console then click “Send feedback” in the drop down menu.