Hey everyone, I've been playing with mixpanel for a while now, but I seem to be running into issues regarding user creation in our mobile application. Sometimes users are created just fine, but other times they are just aliased (and don't appear in the user's view).
I'm actually using the unofficial react-native version of mixpanel which goes on top of the IOS and Android versions. I'm unsure of whether my issues relate to the logical flow or events, the underlying SDKs, or this react native library, so I thought I'd see how everyone else is using the mobile SDKs.
The workflow for aliasing and creating users in our application goes like this: User signs up => Alias is created using their id => User properties are set once => User is identified
Here are the functions used during signup.
// Create the alias
// Attach additional details once
$created: new Date().toISOString()
// Identify the user after creation (best practice)
Has anyone had issues with the "setOnce" method in the SDKs? Should I be using the "set" method instead? It seemed like I should only be setting their information once, so I chose that method.
The only other issues I could imagine are race conditions that are not accounted for.
If anyone has insight into this issue, has worked with the react native library, or seen similar problems using the mobile SDKs, please let me know!