Skip to content

Android O and AB Test persistency support

Compare
Choose a tag to compare
@patedit patedit released this 23 Sep 21:09
· 575 commits to master since this release

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 -->
<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 and floatTweak.

Fixes

  • Fix SecurityException crash on some Samsung devices running 7.0 due to missing BLUETOOTH 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 to THREAD_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 and message_id to integers