fpjs_pro_plugin 1.0.4
fpjs_pro_plugin: ^1.0.4 copied to clipboard
Flutter plugin that can be used in an application to call the native FingerprintJS Pro libraries and identify devices.
FingerprintJS Pro Flutter #
Official Flutter plugin for 100% accurate device identification, created for FingerprintJS Pro. #
This plugin can be used in a Flutter application to call the native FingerprintJS Pro libraries and identify devices.
FingerprintJS Pro is a professional visitor identification service that processes all information server-side and transmits it securely to your servers using server-to-server APIs.
Retrieve an accurate, sticky and stable FingerprintJS Pro visitor identifier in an Android or an iOS app. This library communicates with the FingerprintJS Pro API and requires an api key.
Native libraries used under the hood:
Quick start #
1. Add fpjs_pro_plugin
to the pubspec.yaml in your Flutter app.
dependencies:
flutter:
sdk: flutter
...
fpjs_pro_plugin: ^1.0.4
Run pub get
to download and install the package.
2. Use the plugin in your application code to 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('<apiKey>'); // insert your actual API key here
}
}
// Usage
FpjsProPlugin.getVisitorId().then((visitorId) {
// use the visitor id
})
You can also configure region
and endpoint
in initFpjs
method, like below:
await FpjsProPlugin.initFpjs('<apiKey>');
await FpjsProPlugin.initFpjs('<apiKey>', endpoint: 'https://subdomain.domain.com');
await FpjsProPlugin.initFpjs('<apiKey>', region: 'eu');
Additional Resources #
License #
This library is MIT licensed.