Calling reset on MixpanelInstance and then trying to get distinctId does not work since reset is async and add to trackingQueue. This method should have a completion once a new distinctId is ready to be used.
As a workaround I`m using
Mixpanel.mainInstance().reset()
Mixpnael.mainInstance().flush() { /* use the new distinctId here */ }
Calling reset on MixpanelInstance and then trying to get distinctId does not work since reset is async and add to trackingQueue. This method should have a completion once a new distinctId is ready to be used.
As a workaround I`m using