You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+89-70Lines changed: 89 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,32 +15,43 @@
15
15
</p>
16
16
17
17
# Fingerprint Pro Flutter
18
-
[Fingerprint](https://fingerprint.com/) is a device intelligence platform offering 99.5% accurate visitor
19
-
identification. Fingerprint Pro Flutter SDK is an easy way to integrate Fingerprint Pro into your Flutter
20
-
application to call the native Fingerprint Pro libraries (Android, iOS and Web) and identify devices.
18
+
19
+
[Fingerprint](https://fingerprint.com/) is a device intelligence platform offering visitor
20
+
identification and device intelligence with industry-leading accuracy. Fingerprint Flutter SDK is an easy way to integrate Fingerprint into your Flutter
21
+
application. The plugin allows you to call the underlying native Fingerprint agents (Android, iOS, and Web) and identify devices.
21
22
22
23
## Table of contents
23
-
*[Requirements](#requirements)
24
-
*[Dependencies](#dependencies)
25
-
*[How to install](#how-to-install)
26
-
*[Usage](#usage)
27
-
*[Additional Resources](#additional-resources)
28
-
*[Support and feedback](#support-and-feedback)
29
-
*[License](#license)
24
+
-[Fingerprint Pro Flutter](#fingerprint-pro-flutter)
To identify visitors, you need a Fingerprint Pro account (you can [sign up for free](https://dashboard.fingerprintjs.com/signup/)).
78
+
79
+
To identify visitors, you need to [sign up for a Fingerprint account](https://dashboard.fingerprintjs.com/signup/) (there is a free trial available).
65
80
66
81
- Go to [the Fingerprint Pro dashboard](https://dashboard.fingerprint.com/).
67
82
- Navigate to **App Settings** > **API Keys** to find your _Public_ API Key.
68
83
69
-
### 1. Configure the plugin
84
+
### 1. Configure and initialize the plugin
85
+
86
+
Initialize the Fingerprint Flutter plugin inside a [StatefulWidget](https://api.flutter.dev/flutter/widgets/StatefulWidget-class.html), for example, in the `initState` method.
87
+
88
+
Use the [Public API key](https://dev.fingerprint.com/docs/quick-start-guide#2-get-your-api-key) and [region](https://dev.fingerprint.com/docs/regions) of your Fingerprint workspace (US region is used by default).
@@ -82,80 +110,70 @@ class _MyAppState extends State<MyApp> {
82
110
83
111
void doInit() async {
84
112
await FpjsProPlugin.initFpjs(
85
-
'<apiKey>' // insert your actual API key here
113
+
'<PUBLIC_API_KEY>', // insert your API key here
114
+
region: Region.us // or Region.eu, Region.ap
86
115
);
87
116
}
88
117
// ...
89
118
}
90
119
```
91
120
92
-
You can also configure `region`, `endpoint` and `endpointFallbacks` in the `initFpjs` method, like below. For the web platform, you can use an additional `scriptUrlPattern` and `scriptUrlPatternFallbacks` properties to specify a custom URL for loading the JavaScript agent. This is required for proxy integrations.
### 2. Use the plugin in your application code to identify a visitor
121
+
To avoid ad blockers, we recommend proxying requests from your application to Fingerprint servers through one of our proxy integrations. See [Evading ad blockers with proxy integrations](https://dev.fingerprint.com/docs/protecting-the-javascript-agent-from-adblockers) for more information.
108
122
109
-
#### 2.1 Use the `getVisitorId` method if you only need a `visitorId`:
123
+
To use a proxy integration, you can configure `endpoint`, `scriptUrlPattern`, and their fallbacks.
0 commit comments