2 min read
The Flutter SDK adds Footprint onboarding to your Android and iOS apps. The flow opens in an in-app browser.
Minimum version requirements
Your app needs the following versions:
Flutter
| Dependency | Version |
|---|---|
| Flutter | ≥ 3.13.0 |
| Dart SDK | ≥ 3.3.0 |
Android
| Configuration | Requirement |
|---|---|
minSdkVersion | 21 (Android 5.0) |
compileSdkVersion | 34 |
| Kotlin | ≥ 1.9.22 |
iOS
| Configuration | Requirement |
|---|---|
| Minimum OS | 13.0+ |
| Swift | ≥ 5.7 |
Installation
Install the SDK:
bash1flutter pub add footprint_flutter
You can also add footprint_flutter to pubspec.yaml and run flutter pub get. Find available versions on pub.dev.
On iOS, install the native dependencies:
bash1cd ios && pod install && cd ..
Device intelligence
The SDK can collect device signals through Fingerprint, a third-party provider. Device intelligence is an optional package. The onboarding flow works without it. If your app already bundles Fingerprint, you can leave it out to avoid a duplicate native framework.
footprint_flutter_device_intelligence 0.2.0 requires footprint_flutter 2.3 or later in the 2.x line and cannot be installed with 3.x. The steps below apply to SDK 2.x.If your playbook uses device-intelligence rules, install the package so those rules receive the signals they need:
bash1flutter pub add footprint_flutter_device_intelligence
Version 0.2.0 of this package requires Flutter 3.44, Dart 3.12, iOS 15, and Android API 24. Apps on older versions can use 0.1.0.
Register it once before onboarding, for example in main:
dart1import 'package:footprint_flutter_device_intelligence/footprint_flutter_device_intelligence.dart';
2
3void main() {
4 registerFootprintDeviceIntelligence();
5 runApp(const MyApp());
6}
On web, also add Fingerprint's loader to the <head> of web/index.html:
html1<script src="assets/packages/fingerprint_flutter/web/index.js" defer></script>
Next steps
- Onboarding starts an onboarding from your app and handles the onboarding ID it returns.