device_integrity library

Device Integrity Flutter plugin.

A Flutter plugin that wraps the device-attestation APIs from each platform behind a single Dart facade:

Platform API
Android (Google Play) Google Play Integrity (classic + standard)
Android (Huawei) SafetyDetect (SysIntegrity, URL check,
User Detect, Wi-Fi Detect, AppsCheck)
iOS DeviceCheck (DCDevice)
iOS 14+ App Attest (DCAppAttestService)

All tokens returned by this plugin are opaque and must be validated on your backend server. Never trust an integrity verdict computed on the device itself.

Classes

DeviceIntegrity
The main entry point of the plugin.
DeviceIntegrityPlatform
The interface that platform implementations of device_integrity must implement.
IntegrityResult
Generic result for an integrity / attestation request.
MaliciousApp
Description of a malicious app reported by Huawei SafetyDetect.
UrlCheckResult
Result of a Huawei SafetyDetect URL check.
UserDetectResult
Result of a Huawei SafetyDetect user-detect (reCAPTCHA-style) request.
WifiDetectResult
Result of a Huawei SafetyDetect Wi-Fi detect request.

Enums

UrlThreatType
Threat type returned by Huawei SafetyDetect URL check.