Mobile apps

What is the Play Integrity API?

The Play Integrity API is a Google service your app can call to get a signed verdict about whether it is the unmodified app from Google Play, running on a genuine, certified Android device. Your server then decides what to allow.

What the verdict covers

Whether the app binary matches the one published on Google Play, whether the device passes Google's integrity checks and whether the app was installed from the store. Details of the available signals change, so read Google's current documentation.

When it is worth using

Apps with money or fraud risk: payments, promotions, ride and delivery apps with wallet credit, games with competitive rankings. It makes tampered clones and emulator farms harder to run.

Using it properly

  • Verify the token on your server, never only inside the app.
  • Add a nonce to each request so verdicts cannot be replayed.
  • Decide a fallback for honest users on unusual devices, such as custom ROMs.
  • Expect quotas on the number of requests.

It reduces abuse; it does not make a client app trustworthy. Business rules still belong on the server.

Questions, answered

It is the replacement for the older SafetyNet Attestation API.

Depending on the verdict you request, rooted or modified devices can be flagged, and you choose the response.

By the Stegnor team · Updated