Android O and AB Test persistency support
New features
- We now persist Tweaks and AB test experiments!
- Android Oreo support. If you want to customize your notifications channel for devices running 26 or above you can use the following new keys:
<meta-data android:name="com.mixpanel.android.MPConfig.NotificationChannelId"
android:value="mixpanel_id" />
<meta-data android:name="com.mixpanel.android.MPConfig.NotificationChannelName"
android:value="mixpanel" />
<meta-data android:name="com.mixpanel.android.MPConfig.NotificationChannelImportance"
android:value="4" /> <!-- IMPORTANCE_HIGH -->
- Add option to specify whether or not Mixpanel will determine geolocation information using the client IP (see
ip=1
in https://mixpanel.com/help/reference/http for more information). Example of use:
<meta-data android:name="com.mixpanel.android.MPConfig.UseIpAddressForGeolocation"
android:value="false" />
- You can now specify maximum and minimum values for your tweaks with
longTweak
intTweak
doubleTweak
andfloatTweak
.
Fixes
- Fix
SecurityException
crash on some Samsung devices running 7.0 due to missingBLUETOOTH
permission (fixes #424) - Call
onMixpanelTweakUpdated
only after tweaks are updated (fixes #472) - Fix random crash on emulators (#417)
- Fix crash using mini in-app notifications when trying to remove a notification while the activity was being destroyed (fixes #400)
- Fix crash if we tried to show an in-app before
people.identify()
is called (fixes #449) - Fix
BadParceableException
for activities with unparceable intents (fixes #251) - Specify locale to calculate session length so session lengths are always in seconds.
Improvements
- Various AB tests and Codeless events improvements (see PR for more details #492)
- Remove fallback urls support. The following meta-tags won't have any effect:
com.mixpanel.android.MPConfig.DisableFallback
com.mixpanel.android.MPConfig.EventsFallbackEndpoint
com.mixpanel.android.MPConfig.DecideFallbackEndpoint
com.mixpanel.android.MPConfig.PeopleFallbackEndpoint
- Change thread priority from
THREAD_PRIORITY_LESS_FAVORABLE
toTHREAD_PRIORITY_BACKGROUND
- Track whether the user tapped on the primary or secondary button in an in-app notification. We also now track
$campaign_open
even if there is no cta url - Cast
campaign_id
andmessage_id
to integers