React Native SDK Setup
To use FlareLane with other push solutions, you must follow some additional steps. Refer to iOS: Disable Swizzling for details.
Follow this guide below:
$ yarn add @flarelane/react-native-sdk
To ensure a smooth process for obtaining permission for push notifications from users, please make sure that both conditions below are satisfied.
- Using FlareLane SDK 1.2.0 or higher
- Set compileSdkVersion to at least 33
app/build.gradle
android {
compileSdkVersion 33
...
defaultConfig {
...
targetSdkVersion 33
}
}
- 1.Enter
cd ios
in Terminal to go to the ios directory - 2.At the top of the
Podfile
, enterplatform :ios, '11.0'
or higher than version 11 - 3.Run
pod install
in the terminal - 4.Run the Xcode project by opening the <YOUR_PROJECT_NAME>.xcworkspace
- 5.Enter 11.0 or higher as
Deployment Target
of the PROJECT - 6.Enter 11.0 or higher as
Minimum Deployments
of the TARGET - 7.Go to
Signing & Capabilities
and click+ Capability
and addPush Notifications

Add the following code to Main App(e.g. App.tsx). You can check your project ID at FlareLane console's Project.
index.js
import FlareLane from '@flarelane/react-native-sdk';
FlareLane.initialize('INPUT_YOUR_PROJECT_ID');
After completing all the steps, build and run your app. Devices that subscribe to push notifications will be automatically added to FlareLane console's All Devices.
Before actual deployment, be sure to verify that the push notifications are being received properly on the device and that the statistics are accurately recorded when the push notifications are clicked.
To customize notification icons, see below:
- [iOS] The default app icon will be used as is
To attach an image to push notifications, see below:
- [Android] No additional steps are required
Last modified 3mo ago