minDeviceRecognitionLevel property
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 NO_INTEGRITY.
Possible string values are:
- "DEVICE_RECOGNITION_LEVEL_UNSPECIFIED" : Default value. Do not specify
this value directly. When this default value is detected in a
configuration, the
NO_INTEGRITYdefault 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
app_integrityandaccount_detailssettings may still cause some device integrity checks to be performed. - "MEETS_BASIC_INTEGRITY" : This level corresponds to the
MEETS_BASIC_INTEGRITYoptional device recognition label. 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 forMEETS_BASIC_INTEGRITYbut notMEETS_DEVICE_INTEGRITY. This API is not responsible for any such opt-ins. - "MEETS_DEVICE_INTEGRITY" : This level corresponds to the
MEETS_DEVICE_INTEGRITYdevice recognition verdict. Any app integrated with Play Integrity will automatically be eligible to receive this label without any additional action from you. At this level, devices that have theMEETS_BASIC_INTEGRITYlabel but not theMEETS_DEVICE_INTEGRITYlabel will be rejected. - "MEETS_STRONG_INTEGRITY" : This level corresponds to the
MEETS_STRONG_INTEGRITYoptional device recognition label. This value represents the highest level of device integrity. At this level, devices that have theMEETS_BASIC_INTEGRITYorMEETS_DEVICE_INTEGRITYbut not theMEETS_STRONG_INTEGRITYlabel will be rejected. 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 forMEETS_STRONG_INTEGRITY. This API is not responsible for any such opt-ins.
Implementation
core.String? minDeviceRecognitionLevel;