Web SDK Reference
.initialize
Request the notification permission and register a subscribed device.
/*
Params
- options: InitializeOptions
- projectId
- serviceWorkerPath
*/
FlareLane.initialize({ projectId: "<PROJECT_ID>" });.setLogLevel
/*
Params
- logLevel: 'none' | 'error' | 'verbose'(default)
*/
FlareLane.setLogLevel('verbose');Subscription
.getIsSubscribed
.setIsSubscribed
Use if you want to manage subscriptions directly within your app.
Data Management
.setUserId
When logging in, specify the user ID.
.trackEvent
.setTags
.getDeviceId
Notifications Handler
.setConvertedHandler
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