Skip to content

Latest commit

 

History

History
executable file
·
44 lines (31 loc) · 1.57 KB

File metadata and controls

executable file
·
44 lines (31 loc) · 1.57 KB

Urban Airship Kit Integration

This repository contains the Urban Airship integration for the mParticle Android SDK.

Adding the integration

  1. Add the kit dependency to your app's build.gradle:

    dependencies {
        implementation 'com.mparticle:android-urbanairship-kit:5+'
    }
  2. Follow the mParticle Android SDK quick-start, then rebuild and launch your app, and verify that you see "Urban Airship detected" in the output of adb logcat.

  3. Reference mParticle's integration docs below to enable the integration.

  4. If you wish to utilize Urban Airship's Push Messaging capabilities, please refer to the Push Message Considerations section below

Tag-Based Segmentation

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.

Java

    UAirship.shared().getChannel().editTags()
    .removeTag("some_tag")
    .apply();

Kotlin

    UAirship.shared().getChannel().editTags()
    .removeTag("some_tag")
    .apply()

Documentation

Urban Airship integration

License

Apache License 2.0