Fire TV SDK Setup
How to install the Airship SDK on Fire TV.
You can use Airship to send messages to your app on Fire TV devices. Create Fire TV messages the same way as messages for Amazon devices and then target the corresponding platform to reach the Fire TV devices. To target Fire TV, you just need to send the message to Amazon. The messages can be sent via Push Notification, In-App Messages and In-App Automation, and Message Center by specifying users (segment, named user, or channel ID).
The following message types and features are supported for Amazon Fire TV, without the need for development work.
1. The notification will appear in the notification tray. Not supported for Fire TV: buttons, Summary field, Share action, and high priority push (heads-up notifications ).
2. The
MessageCenterAction
opens the Message Center but does not directly open the message. If a web browser is installed, URLs function as button actions.
Requirements
- Minimum Android version supported
21+
- Compile SDK version
33+
SDK Installation
The Airship SDK is split into modules which allow you to choose the push
providers and features to be included in your application. Fire TV receives messages via ADM, so you’ll
need to include the urbanairship-adm
provider in order to receive notifications.
Example installation
dependencies {
val airshipVersion = "17.5.0"
// ADM push provider
implementation("com.urbanairship.android:urbanairship-adm:$airshipVersion")
// Message Center
implementation("com.urbanairship.android:urbanairship-message-center:$airshipVersion")
// Feature Flags
implementation("com.urbanairship.android:urbanairship-feature-flag:$airshipVersion")
}
All Airship dependencies included in the build.gradle.kts
file should all specify the exact same version.
dependencies {
def airshipVersion = "17.5.0"
// ADM push provider
implementation "com.urbanairship.android:urbanairship-adm:$airshipVersion"
// Message Center
implementation "com.urbanairship.android:urbanairship-message-center:$airshipVersion"
}
All Airship dependencies included in the build.gradle
file should all specify the exact same version.
ADM setup
Follow Amazon’s documentation to store your API key as an asset.
Configure and initialize Airship
Fire TV is supported via the native Android Airship SDK, and makes use of the same process to configure and initialize Airship on Fire TV devices. Refer to the Android SDK Setup guide for further set up instructions.
Categories