Get the justtrack user ID (Deprecated)
Each user is assigned a unique user ID by the justtrack SDK which you can access inside your app. You can use this ID to recognize returning users in your app again. Should you already assign a unique ID to your users, you can also link your ID to the justtrack user ID.
The justtrack SDK provides you with a unique ID for each user. You can retrieve this ID by calling the getJusttrackUserId
method on the justtrack SDK:
sdk.getJusttrackUserId().observe { result in
switch result {
case let .success(justtrackUserId):
print("My user ID is \(justtrackUserId)")
case let .failure(error):
print("Something went wrong: \(error)")
}
}