Skip to content

urbanairship/android-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dad4dc6 · Jun 28, 2023
Jun 2, 2023
May 22, 2023
Mar 2, 2023
Jun 8, 2021
Jun 21, 2023
May 24, 2023
Jun 2, 2023
Jan 5, 2016
Jun 2, 2023
Jun 2, 2023
Jun 13, 2023
Jun 28, 2023
Jun 2, 2023
Jun 2, 2023
Nov 30, 2022
Jun 2, 2023
Jun 28, 2023
Jun 28, 2023
Jun 6, 2023
Jun 2, 2023
May 4, 2023
May 31, 2023
May 22, 2023
Apr 27, 2021
Jun 28, 2023
Jan 16, 2020
Jun 28, 2023
Jun 28, 2023
Dec 3, 2021
Mar 2, 2023
Mar 2, 2023
May 22, 2023

Repository files navigation

Android Airship SDK

Airship SDK for Android.

Resources

Requirements

  • minSdkVersion 21
  • compileSdkVersion 33

Quickstart

  1. Include Airship into the build.gradle file:
   dependencies {
     def airshipVersion = "17.0.2"

     // FCM push provider
     implementation "com.urbanairship.android:urbanairship-fcm:$airshipVersion"

     // Message Center
     implementation "com.urbanairship.android:urbanairship-message-center:$airshipVersion"

     // In-App Automation
     implementation "com.urbanairship.android:urbanairship-automation:$airshipVersion"
     
     // Live Updates
     implementation "com.urbanairship.android:urbanairship-live-update:$airshipVersion"
   }
  1. Add Firebase to your app.

  2. Create a new airshipconfig.properties file with your application’s settings:

   developmentAppKey = Your Development App Key
   developmentAppSecret = Your Development App Secret

   productionAppKey = Your Production App Key
   productionAppSecret = Your Production Secret

   # LogLevel is "VERBOSE", "DEBUG", "INFO", "WARN", "ERROR" or "ASSERT"
   developmentLogLevel = DEBUG
   productionLogLevel = ERROR

   # Notification customization
   notificationIcon = ic_notification
   notificationAccentColor = #ff0000

   # Optional - Set the default channel
   notificationChannel = "customChannel"
  1. Set the Autopilot meta-data in the AndroidManifest.xml file:
      <meta-data android:name="com.urbanairship.autopilot"
               android:value="com.urbanairship.Autopilot"/>

Sample Application

A sample application is available that showcases the majority of the features offered by the Airship SDK. Before running the sample, copy the file in sample/src/main/assets/airshipconfig.properties.sample to sample/src/main/assets/airshipconfig.properties and modify the properties to match your application's config.

Packages

No packages published

Contributors 28

Languages