Integrate Flurry SDK for Flutter¶
Integrating with the Flurry SDK is easy and straightforward for Flutter developers.
Follow these instructions and in no time at all, you’ll be ready to start logging events and monetizing your apps.
Create an App & Get Your API Key¶
Start by creating an app. Once the app is created, a Flurry API Key is received. The Key is needed to use the SDK.
An administrator role on a company’s account is needed to be able to create a new app within the company.
For each distinct app that is created you will acquire a unique Flurry API Key. For example, you’ll need two API keys if you are going to release on both Android and iOS platforms.
Install Flurry SDK Flutter Plugin¶
First time using Flutter? Please visit Dart for the installation instructions.
To create your Flutter app, you can follow the Getting Started guide to build your first Flutter app.
Add the following calls to use the Flurry SDK in a project and initialize the Flurry SDK with the project’s API key:
Now test run your app and ensure that it builds without errors. If everything is working properly, a session will be recorded in Flurry and should be visible on your Real Time dashboard within 30 seconds.
If you created the Flurry app within the last 5 minutes, the app may not yet be live on our servers and thus will not reflect real-time data. Re-run your app after 5 minutes to see your session recorded on the Real Time dashboard.
Congratulations! Your Flutter app is now ready to be used with Flurry Analytics.
The Flutter plugin supports the following Flurry optional features.