Menu

Account ID

       Account ID refers to the unique identifier of the user's login account within the app. Prior to logging in, visitor IDs will be used as the user identifier.

       Once the account ID is set, it will be retained until the logout function is called to clear the account ID. The logout function should only be called when users actually log out, but not called when the app is closed or running in the background.

       During data reporting, only the latest account ID passed in will be used. Multiple calls should be avoided to prevent abnormal situations where multiple non-normal account IDs are reported consecutively.

Set Account ID

       Call login to set the user's account ID:

[[SolarEngineSDK sharedInstance] loginWithAccountID:@"aid25491084"];

Note:

       This call only passes account IDs to the SDK and does not report user login events.

Get Account ID

       Call getAccountId to get the user's account ID:

NSString *accountID = [[SolarEngineSDK sharedInstance] accountID];

Clear Account ID

       Call logout to clear the account ID:

[[SolarEngineSDK sharedInstance] logout];

Note:

       This call only notifies the SDK to clear the account ID and will not report the user logout event.

Previous
Visitor ID
Next
Public Event Properties
Last modified: 2024-05-27Powered by