The current user’s identity, if identified. Use identity to link activity between Heap’s client-side and server-side track APIs.

var identity = heap.identity;
const userId = heap.userId;
const identity = heap.identity;
NSString *userId = [Heap userId];
NSString *identity = [Heap identity];
let userId = Heap.userId
Heap.getUserId();
val userId = Heap.getUserId()
val identity = Heap.getIdentity()

This is not yet exposed in the Android SDK.

Did you find what you were looking for?
Thumb up Thumb down