Sentiance assigns to each user a unique ID. You can link your app's user to the Sentiance user using meta-user linking. The linking step involves server-to-server communication, and is triggered by the SDK via a meta-user linking callback. You can implement this callback method as follows:
SDK configuration initialization method. Returned SENTConfig object is passed to [SENTSDK initWithConfig].
1
-(id)initWithAppId:(NSString *) appId
2
secret:(NSString *) secret
3
launchOptions:(NSDictionary *) launchOptions;
Copied!
Parameter
​
appId
Application key which you get from Sentiance account.
secret
Secret key which you get from Sentiance account.
launchOptions
A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.
initWithAppId: secret: link: launchOptions:
SDK config intialization method with linking to customer's user id. It creates a continuous Sentiance profile across application installations and re-installations on different devices, linked together by their own user id.
1
-(id)initWithAppId:(NSString *) appId
2
secret:(NSString *) secret
3
link:(MetaUserLinker) link
4
launchOptions :(NSDictionary *) launchOptions;
Copied!
Parameter
​
appId
Application key which you get from Sentiance account.
secret
Secret key which you get from Sentiance account.
link
​MetaUsersLinker type block which returns linkSuccess or linkFailed depended on how linking gone. Use InstallId to link with backend.
launchOptions
A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.