Skip to content

google/play-integrity-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Play Integrity Plugin for Unity

Overview

Google Play Plugins for Unity provide C# APIs for accessing Play in-game features from within the Unity Engine. These plugins also provide Unity Editor features for building a game before publishing it on Google Play.

Play Integrity API helps you check that your game is unmodified, installed by Google Play, and running on a genuine Android device (or a genuine instance of Google Play Games for PC). Your game’s backend server can respond when you detect risky traffic to prevent unauthorized access and cheating.

Refer to the documentation and Runtime API reference for more information.

Pre-requisites

Required Unity Version

To use the Google Play Integrity plugin, you must use a supported Unity version:

  • All versions of Unity 2019.x, 2020.x, and newer are supported.
  • If you use Unity 2018.x, version 2018.4 or newer are supported.
  • If you use Unity 2017.x, only Unity 2017.4.40 is supported. All other versions aren't supported.

Required Android Version

To use Google Play Integrity plugin, you must target a minimum Android SDK version of:

  • Android Lollipop (API level 21)

Required Play Plugins

The following Google Play plugins will be installed automatically when you install the Google Play Integrity plugin using OpenUPM or when importing the package from GitHub:

  • External Dependency Manager plugin for Unity (EDM4U). This plugin resolves AAR dependencies such as the Play Core library.
  • Play Core plugin for Unity. The Play Core plugin provides the Play Core Library required by some other Play plugins, such as Play Asset Delivery, Play Integrity, Play In-app Reviews, and Play In-app Updates.
  • Play Common plugin for Unity. The Play Common plugin provides common files required by some other Play plugins, such as Play Asset Delivery, Play Integrity, Play In-app Reviews, and Play In-app Updates.

Install the Plugin

To install the Google Play Integrity plugin using Open UPM, follow the instructions to install via package manager or install via command-line.

Alternatively, you can download the latest .unitypackage from the Google Play Integrity plugin GitHub releases page and import it using these instructions on the Google APIs for Unity site.

Sample app

You can find a sample app for Google Play Integrity plugin in the Samples folder on Github. This sample app shows you a working example of the feature in a Unity game.

Support

To request features or report issues with the plugin, please use the GitHub issue tracker.

You can find more resources and support options in the official documentation for Google Play Integrity.

Data Collection

When you upload a game using this plugin to Google Play, Google collects the following data to help improve our products and services:

  • Package name
  • Version number
  • Google Play Plugin version number

To opt-out of this data collection, remove the packagename.metadata.jar file found under each plugin's Runtime/Plugins folder.

Note: This data collection is independent of Google’s collection of library dependencies declared in Gradle when you upload your game to Google Play.

Related Plugins

Browse other Google Play plugins for Unity.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages