Skip to content
ruofan edited this page Feb 2, 2024 · 9 revisions

Set User

After the user logs in, you need to provide the user's uid to the sdk, so that the sdk can use it when sending records.

OmniSegment.login("uid")

When the user logs out:

OmniSegment.logout()

Set Current Page

When the user enters a new page, you need to provide the page key to the sdk, so that the sdk can use it to determine whether to display a popup.

OmniSegment.setCurrentPage("page_key")

Set Firebase Cloud Messaging Token

Note: Before using this feature, you need to integrate Firebase SDK into your project and enable GooFirebase services for your app.

You need to provide the user's Firebase Cloud Messaging Token to the sdk, so that the sdk can use it when sending records and push notifications.

OmniSegment.setFCMToken("FCM Token")

Clone this wiki locally