segment-integration

Urban Airship Segment Integration

Лицензия

Лицензия

Группа

Группа

com.urbanairship.android
Идентификатор

Идентификатор

segment-integration
Последняя версия

Последняя версия

2.1.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

segment-integration
Urban Airship Segment Integration
Ссылка на сайт

Ссылка на сайт

https://airship.com
Система контроля версий

Система контроля версий

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

Скачать segment-integration

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.urbanairship.android : urbanairship-core jar 11.0.3

Модули Проекта

Данный проект не имеет модулей.

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 partner-integration-ua@airship.com

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

Версии библиотеки

Версия
2.1.0
1.2.1
1.2.0