Mobile SDK Reference
.initialize
Request the notification permission and register a subscribed device.
/*
Params
- launchOptions: [UIApplication.LaunchOptionsKey : Any]?
- projectId: String
- requestPermissionOnLaunch: Bool = true
*/
FlareLane.initWithLaunchOptions(launchOptions, projectId: "INPUT_YOUR_PROJECT_ID", true)/*
Params
- launchOptions:(NSDictionary<UIApplicationLaunchOptionsKey,id> * _Nullable)
- projectId:(NSString * _Nonnull)
- requestPermissionOnLaunch:(Bool) = YES
*/
[FlareLane initWithLaunchOptions:launchOptions projectId:@"INPUT_YOUR_PROJECT_ID" requestPermissionOnLaunch: YES];/*
Params
- Context context
- String projectId
- boolean requestPermissionOnLaunch
*/
FlareLane.initWithContext(this, "INPUT_YOUR_PROJECT_ID", true).setLogLevel
/*
Params
- LogLevel level
- .verbose
- .error
*/
FlareLane.setLogLevel(level: .verbose)/*
Params
- LogLevel level
- LogLevelVerbose
- LogLevelError
*/
[FlareLane setLogLevelWithLevel:LogLevelVerbose];/*
Params
- int logLevel
- Log.VERBOSE
- Log.ERROR
*/
FlareLane.setLogLevel(Log.VERBOSE)Subscription
.isSubscribed()
.subscribe()
.unsubscribe()
Data Management
.setUserID
When logging in, specify the user ID.
.trackEvent
.setTags
.getDeviceId
Notifications Handler
.setNotificationClickedHandler
Register a callback handler to be executed when the app enters after clicking on the notification.
.setNotificationForegroundReceivedHandler
Register a callback handler to be executed when the app enters after clicking on the notification.
In-App Message
.displayInApp
Displays the highest priority in-app message that can be shown in the group.
.setInAppMessageActionHandler
Implement a handler for custom actions in the in-app message.
Last updated