Introduction: Urban Airship Android SDK
More: Author   ReportBugs   

Airship SDK for Android.



  • minSdkVersion 21
  • compileSdkVersion 33


1) Include Airship into the build.gradle file:

   dependencies {
     def airshipVersion = "17.3.0"

     // FCM push provider
     implementation "$airshipVersion"

     // Message Center
     implementation "$airshipVersion"

     // In-App Automation
     implementation "$airshipVersion"

     // Live Updates
     implementation "$airshipVersion"

2) Add Firebase to your app.

3) Create a new 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"

4) Set the Autopilot meta-data in the AndroidManifest.xml file:

      <meta-data android:name="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/ to sample/src/main/assets/ and modify the properties to match your application's config.

About Me
GitHub: Trinea
Facebook: Dev Tools