I am working on iOS. I use alias once at login. Then I use identify with the original distinct Id generated by Mixpanel, only the first time (this was recommended on the docs). Then, every time the user logs in I use identify with their email (the same email used as the alias).
The problem is, when I enter from another device, it starts tracking with a new random id (expected behavior) but after I use identify with the email, it keeps tracking the events with the same new random id, it doesn't map to the original distinct id.
Thanks for the help.