minDeviceRecognitionLevel property

String? minDeviceRecognitionLevel
getter/setter pair

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_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 app_integrity and account_details settings may still cause some device integrity checks to be performed.
  • "MEETS_BASIC_INTEGRITY" : This level corresponds to the MEETS_BASIC_INTEGRITY optional 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 for MEETS_BASIC_INTEGRITY but not MEETS_DEVICE_INTEGRITY. This API is not responsible for any such opt-ins.
  • "MEETS_DEVICE_INTEGRITY" : This level corresponds to the MEETS_DEVICE_INTEGRITY device 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 the MEETS_BASIC_INTEGRITY label but not the MEETS_DEVICE_INTEGRITY label will be rejected.
  • "MEETS_STRONG_INTEGRITY" : This level corresponds to the MEETS_STRONG_INTEGRITY optional device recognition label. This value represents the highest level of device integrity. At this level, devices that have the MEETS_BASIC_INTEGRITY or MEETS_DEVICE_INTEGRITY but not the MEETS_STRONG_INTEGRITY label 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 for MEETS_STRONG_INTEGRITY. This API is not responsible for any such opt-ins.

Implementation

core.String? minDeviceRecognitionLevel;