Flutter
FingerprintJS Pro Flutter is an official open-source library for the Flutter ecosystem. The package is also published at pub.dev package repository.
Sample usage
- Add
fpjs_pro_plugin
to thepubspec.yaml
in your Flutter app.
dependencies:
flutter:
sdk: flutter
...
fpjs_pro_plugin: ^1.0.2
- Get the visitor identifier.
import 'package:fpjs_pro_plugin/fpjs_pro_plugin.dart';
...
// Initialization
class _MyAppState extends State<MyApp> {
...
@override
void initState() async {
super.initState();
await FpjsProPlugin.initFpjs('<fingerprintjs-pro-public-api-key>'); // insert your public API key here
}
}
// Usage
FpjsProPlugin.getVisitorId().then((visitorId) {
// use the visitor id
})
Documentation
You can find the full documentation in the official GitHub repository. The repository also contains an example app demonstrating usage of the library.
Updated about 1 month ago
Did this page help you?