This repository contains the Urban Airship integration for the mParticle Android SDK.
-
Add the kit dependency to your app's build.gradle:
dependencies { implementation 'com.mparticle:android-urbanairship-kit:5+' }
-
Follow the mParticle Android SDK quick-start, then rebuild and launch your app, and verify that you see
"Urban Airship detected"
in the output ofadb logcat
. -
Reference mParticle's integration docs below to enable the integration.
-
If you wish to utilize Urban Airship's Push Messaging capabilities, please refer to the Push Message Considerations section below
All mParticle user attributes are forwarded to Airship as tags which can be used to identify and segment your audience.
Most clients prefer for all tags to remain constant if set. But, a tag can be removed manually by invoking removeTag directly on the Airship SDK as shown bellow.
UAirship.shared().getChannel().editTags()
.removeTag("some_tag")
.apply();
UAirship.shared().getChannel().editTags()
.removeTag("some_tag")
.apply()