Skip to content
pubscout

app_attest_integrity

1.0.0, released a year ago by bam.tech

Assess app integrity and sign client data securely using iOS App Attest and Android Play Integrity.

WASM-ready
$ flutter pub add app_attest_integrity
Source repository

What it does

Provides a unified Dart API to create cryptographic keys and attest app integrity on iOS, warm up the integrity server and sign client data on Android. It helps verify that requests originate from a legitimate, untampered application instance running on a real, unrooted device.

AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to verify app authenticity and prevent tampering or replay attacks.
  • Your backend needs to validate data signed by a platform-backed secure key on iOS and Android.

Skip it when

  • You need to run or test features on iOS simulators, which are not supported.
  • You are looking for general device info rather than cryptographic attestation.

Strengths

  • Unified API across iOS and Android.
  • Supports replay-attack resistance using challenge and nonce verification.
  • Follows official Apple and Google integrity guidelines.

Weaknesses

  • Requires proper native setup on both platforms, including a Google Cloud project number for Android.
  • iOS requires a real device (simulators are not supported).

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires iOS 14+ on a real device with proper bundle identifier and entitlements configured. Android requires API 21+, Google Play services, and linking to a Google Cloud project.

final integrity = AppAttestIntegrity();
final signature = await integrity.verify(
  clientData: json.encode({"nonce": challengeFromServer}),
  iOSkeyID: await loadKeyId(),
);

Alternatives

Packages that do the same job and could replace app_attest_integrity.

  • device_info_plus

    If you only need basic device information and properties without cryptographic app integrity or attestation.

Works with

Packages commonly used together with app_attest_integrity: ones it builds on, ones built on it, and its own family.