Integrate Flurry SDK for Flurry¶
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.
If you are looking to release apps targeting older devices, please refer to the related guidelines - iOS and Android.
Create an App & Get Your API Key¶
Start by creating an app. Once you create the app, you’ll receive a Flurry API Key, which you’ll need when using the SDK.
Important
You need to have the administrator role on your company’s account to be able to create a new app within the company.
Note
For each distinct app that you create, you’ll need to acquire a unique Flurry API Key. I.e., you’ll need two API keys if you are going to release on both Android and iOS platforms.
Install Flurry SDK Flutter Plugin¶
If it’s the first time you are 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.
Install and link Flurry Plugin¶
The Flurry SDK Flutter plugin is available at flutter_flurry_sdk and you can install it by running this command in the terminal from the directory containing pubspec.yaml
file. And run an implicit flutter pub get
.
$ flutter pub add flutter_flurry_sdk
Note
For iOS CocoaPods installation, please visit Flurry iOS for the additional steps.
Initialize Flurry¶
Add the following calls to use the Flurry SDK in your project and initialize the Flurry SDK with your project’s API key:
In order to use Flurry Push for iOS and Android, please follow the additional steps in flutter-flurry-sdk.
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.
Important
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.
Flurry APIs¶
The Flutter plugin supports the following Flurry optional features.
Need Help?¶
Check out our robust collection of FAQs and a detailed Lexicon of key terminology. Didn’t find what you were looking for? Check out the other options to get support.