Promise. Await them when you need to sequence work after the native call completes.
Core SDK
Zixflow.initialize(config: ZixflowConfig): Promise<void>
Initialize the SDK with configuration.
Zixflow.identify(params: IdentifyParams): Promise<void>
Identify a user. Provide userId, traits, or both.
Zixflow.clearIdentify(): Promise<void>
Clear the current user’s identity.
Zixflow.track(name: string, properties?: Record<string, any>): Promise<void>
Track a custom event.
Zixflow.screen(title: string, properties?: Record<string, any>): Promise<void>
Track a screen view.
Zixflow.setProfileAttributes(attributes: Record<string, any>): Promise<void>
Set attributes on the user profile.
Zixflow.setDeviceAttributes(attributes: Record<string, any>): Promise<void>
Set attributes on the current device.
Zixflow.registerDeviceToken(token: string): Promise<void>
Register a device token for push notifications.
Zixflow.deleteDeviceToken(): Promise<void>
Remove the current device token.
Zixflow.trackMetric(params): Promise<void>
Track push delivery metrics.
Push Messaging
Zixflow.pushMessaging.showPromptForPushNotifications(options?): Promise<ZixflowPushPermissionStatus>
Request push notification permission.
Zixflow.pushMessaging.getPushPermissionStatus(): Promise<ZixflowPushPermissionStatus>
Zixflow.pushMessaging.getRegisteredDeviceToken(): Promise<string>
Zixflow.pushMessaging.onMessageReceived(message, handleNotificationTrigger?): Promise<boolean>
Process an FCM data message on Android (displays and/or tracks). On iOS this resolves to true without additional work.
Zixflow.pushMessaging.onBackgroundMessageReceived(message): Promise<boolean>
Background helper around onMessageReceived (Android).
Zixflow.pushMessaging.trackNotificationReceived(payload): void
Track that a push was received (iOS-focused; no-op on Android).
Zixflow.pushMessaging.trackNotificationResponseReceived(payload): void
Track that a user opened a push (iOS-focused; no-op on Android).
In-App Messaging
Zixflow.inAppMessaging.registerEventsListener(callback): EventSubscription
Zixflow.inAppMessaging.dismissMessage(): void
Zixflow.inAppMessaging.inbox(): NotificationInbox
Returns the notification inbox helper. See In-App Messaging for usage.
| Method | Description |
|---|---|
getMessages(topic?) | Fetch inbox messages |
subscribeToMessages(listener, topic?) | Listen for inbox changes |
markMessageOpened(message) | Mark as read |
markMessageUnopened(message) | Mark as unread |
markMessageDeleted(message) | Delete message |
trackMessageClicked(message, actionName?) | Track a click |
InlineInAppMessageView
React component for inline in-app placements. Requires elementId.