Setting a User ID
We have added an API for setting a User ID.
There is no need to pass it on every session as we cache it on the device.
Note
The User ID is sent, as is. There is no validation/modification.
To reset it from a device, pass a nil or an empty string. The User ID is sent as is, without any validation or modification.
@property (atomic, nullable) NSString *userID;
Example:
IASDKCore.sharedInstance.userID = @"User_123456";
Introspection (reflection) integration
Class IASDKCore = NSClassFromString(@"IASDKCore");
SEL sharedInstanceSelector = NSSelectorFromString(@"sharedInstance");
SEL setUserID = NSSelectorFromString(@"setUserID:");
id sharedInstance = [IASDKCore performSelector:sharedInstanceSelector];
[sharedInstance performSelector:setUserID withObject:@"User_123456"];