app_device_integrity
1.1.0, released 2 years ago by bubotech.co
Generates device attestation tokens via Apple App Attest and Google Play Integrity.
$ flutter pub add app_device_integrityWhat it does
Simplifies app attestation by using Apple's App Attest and Google's Play Integrity to generate tokens. These tokens can be sent to your server for decryption and verification of reliable device access.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to verify app and device integrity before allowing sensitive operations.
- Your backend needs to validate tokens from Apple App Attest or Google Play Integrity.
Skip it when
- You do not have a backend server capable of verifying Apple App Attest or Google Play Integrity tokens.
- You need a general-purpose device information package rather than security attestation.
Strengths
- Simplifies native app attestation APIs into a unified plugin interface.
- Provides support for both major platforms (iOS App Attest and Android Play Integrity).
Weaknesses
- Requires significant server-side implementation to decrypt and verify the generated tokens.
- Android implementation strictly requires linking a GCP Project ID and Google Play Console setup.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires setting up Apple App Attest and configuring a GCP Project ID linked with the Google Play Console for Android.
final _appAttestationPlugin = AppDeviceIntegrity();
String sessionId = '550e8400-e29b-41d4-a716-446655440000';
int gpc = 0000000000;
if (Platform.isAndroid) {
tokenReceived = await _appAttestationPlugin.getAttestationServiceSupport(challengeString: sessionId, gcp: gpc);
return;
}
tokenReceived = await _appAttestationPlugin.getAttestationServiceSupport(challengeString: sessionId);Alternatives
Packages that do the same job and could replace app_device_integrity.
- device_info_plus
If you only need standard device and OS metadata rather than cryptographically secure app attestation tokens.
93Compare
Works with
Packages commonly used together with app_device_integrity: ones it builds on, ones built on it, and its own family.