fingerprint_flutter. See the Flutter quickstart for a step-by-step guide.
Upgrading from SDK v4? The package is renamed from
fpjs_pro_plugin to fingerprint_flutter, and the API has breaking changes. See Migrating the Flutter SDK from v4 to v5.Requirements
The Flutter SDK uses the v4 Android and iOS SDKs under the hood, but its minimum versions can be higher than theirs. It requires:- Flutter 3.44.0 or higher
- Dart 3.12.0 or higher
- Android 7.0 (API level 24) or higher, as required by Flutter 3.44.
- For Android apps on Android Gradle plugin (AGP) 8: Kotlin Gradle plugin 2.2.20 or higher
- iOS 15/tvOS 15 or higher, Xcode 16 or higher, Swift 6 or higher
1. Install the plugin
Addfingerprint_flutter to the pubspec.yaml file in your Flutter app:
pubspec.yaml
flutter pub get to download and install the package.
To use this plugin on the web, add the JavaScript agent loader <script> tag to the <head> of your HTML template inside the web/index.html file:
web/index.html
2. Identify visitors
Create the client inmain() so the native client starts at app launch. The constructor is synchronous. You don’t need to await it.
Dart
lib/main.dart in a new Flutter app with this snippet and set your public API key.