Release v4.9.2
-
Crash fixes:
NoClassDefFoundError
on some Samsung devices when usingBluetoothAdapter
-
Bug Fixes:
- Tweak-related bugs with some of our improvements (below).
-
Improvements:
-
New API:
getPushRegistrationId
to retrieve the device push token through a mixpanel instance. -
Add proguard rules.
-
Ability to remove a single push token through
clearPushRegistrationId(token)
. -
Ability to remove a people property through
remove(name, value)
-
Ability to disable the
ViewCrawler
(AB Test/Codeless) for specific project tokens (handy if you have multiple mixpanel instances). To use this feature:<meta-data android:name="com.mixpanel.android.MPConfig.DisableViewCrawlerForProjects" android:resource="@array/my_project_list" />
And define the following on your
array.xml
:<resources> <string-array name="my_project_list"> <item>project token 1</item> <item>project token 2</item> </string-array> </resources>
-
Ability to add listeners to know when tweaks are updated:
MixpanelAPI.getInstance(context, API_TOKEN). addOnMixpanelTweakUpdatedListener(<your listener>)
- Push notification enhancements: From mixpanel.com you can now use the following keys as part of a push notification payload:
mp_icnm_l
Large icon to be used on a push notification.
mp_icnm_w
White icon to be used on Lollipop and above.
mp_color
Color to be used on Lollipop and above (#argb).
Example of a payload:{"mp_icnm":"an_icon", "mp_icnm_l":"big_icon", "mp_icnm_w":"white_icon","mp_color":"#FFAA0000"}
- Time events are persisted across user sessions.
- Upgrade GCM and avoid using deprecated GCM APIs. Your Google Play Services library must be 7.5.0 or above
-