Releases: mixpanel/mixpanel-android
Releases · mixpanel/mixpanel-android
v5.8.5 - Bug fixes for notifications
Fix SecurityException crash
Fixes
- Fix
SecurityException
crash onInstallReferrerPlay
class. More info: #700
v5.8.3
Fixes
- Remove unused intent filter from activity
- Fix routing activity bug that made a push action to be repeated when the app was open again
Features
- Add option to disable automatic flushing when the app goes into the background. Add the following to you
<application>
tag on yourAndroidManifest.xml
if you don't want the SDK to automatically flush its queues when the app goes into the background:
<meta-data android:name="com.mixpanel.android.MPConfig.FlushOnBackground"
android:value="false" /
Several bug fixes
Fixes
- Added
$radio
property (iOS parity) as a super property. You'll need to request permission forREAD_PHONE_STATE
if you want to have access to that property. - Ensure web links are always open in a browser
- Fixed tracking
Message Received
under certain cases. - Added compatibility with installreferrer 1.0 (
IllegalArgumentException
was thrown - fixes #678)
Fix exception google play referrer
Fixes
- Catch all exceptions when reading referrer details from Google Play to avoid potential crash
Deprecate InstallReferrerReceiver in favor of Google Play install referrer
New features
- Referrer details are now fetched from Google Play since
INSTALL_REFERRER
message is no longer supported by Google. If you have the following lines, please remove them from yourAndroidManifest.xml
:
Remove:
<receiver
android:name="com.mixpanel.android.mpmetrics.InstallReferrerReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
You now need to use a new Google dependency to be able to track your referrer details. Update your build.gradle
file and add the following dependency:
Add:
dependencies {
implementation 'com.android.installreferrer:installreferrer:1.1'
...
}
As before, Mixpanel referrer track will inspect the referrer and not only set a new property referrer
but will also look for the following keys and set them as event properties separately (if available): utm_source
, utm_medium
, utm_term
, utm_content
and utm_campaign
.
Fixes
ConcurrentModificationException
using super properties (#658)- Track session lengths as a numbers and not strings.
- In-app notification
NullPointerException
. - Capture exception when writing on SQLite and restore state.
- Do not allow
null
values asdistinct_id
.
Push notification improvements
Features
- Additional support for rich push notifications: you can now include images, buttons, and more
- You can now track when a push notification was dismissed. Replacing existing events (backwards compatible) and adding new ones:
$push_notification_received
,$push_notification_tap
,$push_notification_dismissed
for notifications sent from Mixpanel. - Add geolocation flag to people updates (#656)
Fixes
- Always union an existing device token. Useful if the device token was removed previously but still valid.
PS Re: Just kidding. I'm still here.
v5.6.9
Bug fixes
Release v5.6.7
Fixes
- Crash when formatting timezones due to OEM bug #567
- Fix
ArrayOutOfBoundsException
due to OEM bug #241 - Use current loop handler when waiting for UA integration
- Better FCM initialization to avoid warnings (#624) and fix crash when using other FCM providers #608
New features
- Added
$ae_total_app_sessions
and$ae_total_app_session_length
. Parity with iOS (thanks @ivansap!) - Allow passing super properties when initializing the library. Addresses #597. Usage:
MixpanelAPI.getInstance(this, MY_TOKEN, superPropertiesJsonObject)