segment-integration

Urban Airship Segment Integration

License

License

GroupId

GroupId

com.urbanairship.android
ArtifactId

ArtifactId

segment-integration
Last Version

Last Version

2.1.0
Release Date

Release Date

Type

Type

aar
Description

Description

segment-integration
Urban Airship Segment Integration
Project URL

Project URL

https://airship.com
Source Code Management

Source Code Management

https://github.com/urbanairship/android-segment-integration

Download segment-integration

How to add to project

<!-- https://jarcasting.com/artifacts/com.urbanairship.android/segment-integration/ -->
<dependency>
    <groupId>com.urbanairship.android</groupId>
    <artifactId>segment-integration</artifactId>
    <version>2.1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.urbanairship.android/segment-integration/
implementation 'com.urbanairship.android:segment-integration:2.1.0'
// https://jarcasting.com/artifacts/com.urbanairship.android/segment-integration/
implementation ("com.urbanairship.android:segment-integration:2.1.0")
'com.urbanairship.android:segment-integration:aar:2.1.0'
<dependency org="com.urbanairship.android" name="segment-integration" rev="2.1.0">
  <artifact name="segment-integration" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.urbanairship.android', module='segment-integration', version='2.1.0')
)
libraryDependencies += "com.urbanairship.android" % "segment-integration" % "2.1.0"
[com.urbanairship.android/segment-integration "2.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
com.urbanairship.android : urbanairship-core jar 11.0.3

Project Modules

There are no modules declared in this project.

Airship Segment Integration

The Segment and Airship partnership is growing and we have recently launched a new bi-directional server-side integration. You can read about this new integration here.

The Segment platform has a limitation and only allows a single Destination endpoint per integration. This SDK integration and the new Server-side integration cannot be options on the Segment website under Airship.

For the immediate future, this integration will be moved to a Private-Beta within Segment. Customers will not see an interruption in service and Airship will continue to maintain this repo with each SDK release. Customers that have already been configured for the SDK integration will still be able to see the required elements for that integration within Segment.

The Segment and Airship teams are working together to identify a path forward for supporting both Destination integrations. In the meantime, we do not suggest that existing users configure both Destinations. This will result in duplicate events.

If you have any concerns or questions, please reach out to our Partner Integration Team [email protected]

Setup

  1. Add Segment to your app as defined in the following Segment docs.

  2. Include the Airship dependency in the project’s build.gradle file:

    repositories {
        ...

        maven {
            url  "https://urbanairship.bintray.com/android"
        }
    }


    dependencies {
        ...

        // Airship SDK
        compile 'com.urbanairship.android:segment-integration:+'
     }
  1. Verify the applicationId is set in the project’s build.gradle file:
    android {
        ...

        defaultConfig {
            ...

            applicationId "com.example.application"
        }
    }
  1. Add the Airship Integration factory:
    Analytics analytics = new Analytics.Builder(context, writeKey)
        .use(UrbanAirshipIntegration.FACTORY)
        ...
        .build();
  1. Set up a Push Provider as described in the following Airship docs. Add your chosen push provider as a dependency in your app's build.gradle file. e.g. for FCM:
   dependencies {
       ...

       // Airship FCM Push Provider
       implementation 'com.urbanairship.android:urbanairship-fcm:11.0.1'
   }
  1. Enable push notifications after the Airship Integration is ready, e.g.
   // Enable user notifications
   analytics.onIntegrationReady(UrbanAirshipIntegration.URBAN_AIRSHIP_KEY, new Analytics.Callback<Object>() {
       @Override
       public void onReady(Object instance) {
          UAirship airship = (UAirship) instance;
          airship.getPushManager().setUserNotificationsEnabled(true);
       }
   });
  1. Configure the Airship Integration as described in the following Segment docs.
com.urbanairship.android

Airship

Versions

Version
2.1.0
1.2.1
1.2.0