Resource: PlayIntegrityConfig
An app's Play Integrity configuration object. This configuration controls certain properties of the returned by AppCheckTokenExchangePlayIntegrityToken, such as its ttl.
Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by the Play Integrity API; please register them via the Firebase Console or programmatically via the Firebase Management Service.
| JSON representation |
|---|
{ "name": string, "tokenTtl": string, "appIntegrity": { object ( |
| Fields | |
|---|---|
name |
Required. The relative resource name of the Play Integrity configuration object, in the format: |
tokenTtl |
Specifies the duration for which App Check tokens exchanged from Play Integrity tokens will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. A duration in seconds with up to nine fractional digits, ending with ' |
appIntegrity |
Specifies application integrity requirements for Android devices running your app. These settings correspond to requirements on the application integrity field obtained from the Play Integrity API. See the default responses table for a quick summary. The default values for these settings work for most apps, and are recommended. |
deviceIntegrity |
Specifies device integrity requirements for Android devices running your app. These settings correspond to requirements on the device integrity field obtained from the Play Integrity API. See the default responses table for a quick summary. Warning: There are also conditional as well as optional responses that you can receive, but requires additional explicit opt-in from you. The App Check API is not responsible for any such opt-ins. The default values for these settings work for most apps, and are recommended. |
accountDetails |
Specifies account requirements for Android devices running your app. These settings correspond to requirements on the account details field obtained from the Play Integrity API. See the default responses table for a quick summary. The default values for these settings work for most apps, and are recommended. |
AppIntegrity
A settings object specifying application integrity requirements for Android devices running your app.
These settings correspond to requirements on the application integrity field obtained from the Play Integrity API. See the default responses table for a quick summary.
The default values for these settings work for most apps, and are recommended.
| JSON representation |
|---|
{ "allowUnrecognizedVersion": boolean } |
| Fields | |
|---|---|
allowUnrecognizedVersion |
Specifies whether your running app is allowed to have the Note that the app recognition verdict If your app is published off-Play, this field should be set to If set to |
DeviceIntegrity
A settings object specifying device integrity requirements for Android devices running your app.
These settings correspond to requirements on the device integrity field obtained from the Play Integrity API. See the default responses table for a quick summary.
Warning: There are also conditional as well as optional responses that you can receive, but requires additional explicit opt-in from you. The App Check API is not responsible for any such opt-ins.
The default values for these settings work for most apps, and are recommended.
| JSON representation |
|---|
{
"minDeviceRecognitionLevel": enum ( |
| Fields | |
|---|---|
minDeviceRecognitionLevel |
Specifies the minimum device integrity level in order for the device to be considered valid. Any device with a device recognition verdict lower than this level will be rejected. If this is unspecified, the default level is [ |
DeviceRecognitionLevel
The possible levels of device recognition verdicts.
| Enums | |
|---|---|
DEVICE_RECOGNITION_LEVEL_UNSPECIFIED |
Default value. Do not specify this value directly. When this default value is detected in a configuration, the [NO_INTEGRITY][google.firebase.appcheck.v1.PlayIntegrityConfig.DeviceIntegritySettings.DeviceRecognitionLevel.NO_INTEGRITY] default level takes effect. |
NO_INTEGRITY |
If this level is set, no explicit device integrity label requirements will be checked. However, because Play Integrity's other features may perform (and require) their own intrinsic device integrity checks, your |
MEETS_BASIC_INTEGRITY |
This level corresponds to the This value represents the most basic level of device integrity, and is the minimum allowed in App Check's standard implementation of Play Integrity. Warning: Because this is an optional response, you must first explicitly opt in your app in the Play Console in order to receive this label. Without this opt-in, your app may break for any user whose device is eligible for |
MEETS_DEVICE_INTEGRITY |
This level corresponds to the At this level, devices that have the |
MEETS_STRONG_INTEGRITY |
This level corresponds to the This value represents the highest level of device integrity. At this level, devices that have the Warning: Because this is an optional response, you must first explicitly opt in your app in the Play Console in order to receive this label. Without this opt-in, your app may break for any user whose device is eligible for |
AccountDetails
A settings object specifying account requirements for Android devices running your app.
These settings correspond to requirements on the account details field obtained from the Play Integrity API. See the default responses table for a quick summary.
The default values for these settings work for most apps, and are recommended.
| JSON representation |
|---|
{ "requireLicensed": boolean } |
| Fields | |
|---|---|
requireLicensed |
Specifies whether the caller must have received the If set to |
Methods |
|
|---|---|
|
Atomically gets the PlayIntegrityConfigs for the specified list of apps. |
|
Gets the PlayIntegrityConfig for the specified app. |
|
Updates the PlayIntegrityConfig for the specified app. |