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)

.setLogLevel

/*
  Params
  - LogLevel level
    - .verbose
    - .error
*/

FlareLane.setLogLevel(level: .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