Integrate Flurry SDK for React Native¶
Integrating with the Flurry SDK is easy and straightforward for React Native developers.
Follow these instructions and in no time at all, you’ll be ready to start logging events and monetizing your apps.
Prerequisites: Flurry React Native plugin supports Android API level 16 and higher, and Xcode 8 and iOS 8 and higher.
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.
You need to have the administrator role on your company’s account to be able to create a new app within the company.
Each app that is created will acquire a unique Flurry API Key. For example, two API keys are needed to release on both Android and iOS platforms.
Install Flurry SDK React Native Plugin¶
First time using Node? Please visit Node.js for the installation instructions.
Follow the Getting Started section to install and build a React Native app.
Install and link Flurry Plugin¶
The Flurry SDK React Native plugin is available via npm package manager react-native-flurry-sdk.
Install Flurry SDK module by npm
npm install react-native-flurry-sdk –save
For iOS CocoaPods installation, please visit Flurry iOS for the additional steps.
Add the following calls to use the Flurry SDK in your project and initialize the Flurry SDK with the project’s API key:
In order to use Flurry Push for iOS and Android, please follow the additional steps in react-native-flurry-sdk.
Now test run the 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 the 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 React Native app is now ready to be used with Flurry Analytics.
The React Native plugin supports the following Flurry optional features.
Check out our robust collection of FAQs and a detailed Lexicon of key terminology. Didn’t find what you were looking for? Contact email@example.com for additional support.