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
.