MdFarhanRaja / android-library

Urban Airship Android SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Airship SDK

Airship SDK for Android.

Resources

Requirements

  • minSdkVersion 16
  • compileSdkVersion 28

Quickstart

  1. Include Airship into the build.gradle file:
   dependencies {
     ...

     // Airship SDK - FCM
     implementation 'com.urbanairship.android:urbanairship-fcm:11.0.5'
   }
  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

   # Toggles between the development and production app credentials
   # Before submitting your application to an app store set to true
   inProduction = false

   # 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.

About

Urban Airship Android SDK

License:Other


Languages

Language:Java 97.7%Language:Kotlin 2.0%Language:Python 0.2%Language:Shell 0.0%