Mixpanel v6.4.0 Release Notes
Release Date: 2022-06-30 // almost 2 years ago-
✨ Enhancements
- 👌 Support defining multiple instances by specifying
instanceName
ingetInstance\(\)
#792
🚀 This release adds the following APIs to MixpanelAPI:
/** ... * @param instanceName The name you want to uniquely identify the Mixpanel Instance. It is useful when you want more than one Mixpanel instance under the same project token. ... **/
getInstance(Context context, String token, String instanceName)
0️⃣getInstance(Context context, String token, boolean optOutTrackingDefault, String instanceName)
getInstance(Context context, String token, JSONObject superProperties, String instanceName)
0️⃣getInstance(Context context, String token, boolean optOutTrackingDefault, JSONObject superProperties, String instanceName)
⚡️ Please note: If you are going to add
instanceName
togetInstance
on your existing implementation.getInstance
will start usinginstanceName
as the instance identifier rather thantoken
, so you might lose some of the stored properties including the distinct Id under thetoken
. We'd recommend using it when you need to create more than one instance under the same project token. You won't lose any events and user profile updates. - 👌 Support defining multiple instances by specifying