This page covers Flutter SDK v4 (
fpjs_pro_plugin), which uses the v2 Android and iOS SDKs and JavaScript agent v3. For the current version, see Flutter SDK and Migrating the Flutter SDK from v4 to v5.Requirements
The Flutter SDK uses the Android and iOS SDKs under the hood, so it has the same minimum OS version requirements:- Android 6.0 (API level 23+) or higher
- iOS 13+/tvOS 15+, Swift 5.9 or higher
- Flutter 3.19 or higher
- Dart 3.3 or higher
1. Install the plugin
Addfpjs_pro_plugin to the pubspec.yaml file in your Flutter app:
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:
HTML
2. Identify visitors
Dart
lib/main.dart in a new Flutter app with this snippet and set your public API key.