Releases: mixpanel/mixpanel-android
Bunch of fixes and notification defaults
Fixes:
- Fix ConcurrentModificationException in Tweaks #414
- Fix ConcurrentModificationException on
OnMixpanelUpdatesReceivedListener
#395 - Update log output to be consistent with property names
getActiveNetworkInfo
proper handling: it could returnnull
. Fix #445
New features:
- Thanks to #283 you can now specify your notifications behavior (sound, vibration, etc..) by using a meta-tag:
<meta-data
android:name="com.mixpanel.android.MPConfig.NotificationDefaults"
android:value="1"/>
You can use any of the following values: https://developer.android.com/reference/android/app/Notification.html#DEFAULT_ALL
Surveys removed
We have fully removed surveys after three months of being deprecated.
Release v4.9.8
Remove BLUETOOTH
permission and make it optional again.
Release 4.9.7
Fixes SurveyActivity java.lang.NoSuchMethodError
#434
Release v4.9.6
Fix NoSuchMethodError
for API below 23 when showing a mini in-app notification (#431)
Release v4.9.5
We now can track open push notifications (for API 14 and above). Events that will be automatically sent (like iOS):
$app_open
will be tracked if the user taps on the push notification. campaign_id and message_id are sent as well as message_type=push.$campaign_received
will be tracked if the app receives a push while the app is running in the foreground. Same properties as before are sent.
Release v4.9.4
In addition to the standard dark or light message templates, you can now customize the format of your in-app messages to ensure they are on-brand:
- Customize text, background, and button colors
- Remove image fades
- Select large or standard image footprints by hiding text
- Add a secondary call-to-action button for multiple deep-linking paths
Improvements:
- Custom logger. Use
MPLog
and customize your minimum log level.
Release v4.9.3
We are deprecating surveys as in 4.9.3. Surveys will be completely removed from the SDK soon.
- Crash fixes:
ConcurrentModificationException
when usingaddOnMixpanelUpdatesReceivedListener
.ConcurrentModificationException
when usingTweaks.getDefaultValues()
NullPointerException
when destroying a survey.
- Improvements:
- No network attempts to visual editor if it's not connected (this will remove all the error logs you guys are seeing in debug mode).
- New meta-tag flag:
com.mixpanel.android.MPConfig.IgnoreInvisibleViewsVisualEditor
. Set this boolean to true if you don't want invisible views to be sent to our visual editors (AB Test or Codeless).
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
-
Release v4.9.0
- Crash fixes:
- Activity life cycle callbacks in old Android APIs.
OutOfMemoryError
for in-app and ab test.NullPointerException
when accessing people profiles after resetting a Mixpanel instance.
- Bug Fixes:
- Resize survey texts to fit any screen.
- AB Test working in emulators running new Android APIs.
- Proper data resetting after calling
reset()
.
- Improvements:
- Hide next/previous arrows on surveys when there are no next/previous questions.
- Added an LRU Cache to re-use & quickly access images.