react-native-mixpanel icon indicating copy to clipboard operation
react-native-mixpanel copied to clipboard

getDistinct ID Undefined

Open bpfeiffer187 opened this issue 5 years ago • 0 comments

Trying to get at the out of the Mixpanel Distinct ID to create a varible that can then be passed to other functions.

the function below returns undefined, but i have already had a different mixpanel event fire prior to this. Any thoughts?

const getMPID = () => { Mixpanel.sharedInstanceWithToken(mixpanelToken()).then(() => { Mixpanel.getDistinctId((id: any) => { Mixpanel.identify(id); }); }); };

bpfeiffer187 avatar Mar 05 '20 15:03 bpfeiffer187