Build Web-Based Apps for Amazon Fire OS
This page is about building apps for the Amazon Fire OS platform. The process involves:
- Set up of your development environment
- Access OS-specific features
- Build, test, and submit your app
Set up your development environment
Apache Cordova is an open-source mobile development framework that allows you to use standard web technologies, such as HTML5, CSS3, and JavaScript, for cross-platform development. You can leverage Cordova to create apps for Amazon Fire OS by targeting the Android platform and making Amazon-specific customization.
To set up your development environment:
-
Install the latest Apache Cordova version. This installs Node.js and the Cordova command-line tool.
-
Set up Cordova Android platform. This is required because Amazon Fire OS is a fork of Android.
-
Create your first Cordova app.
Access OS-specific features
To access device and platform functionality that is inaccessible to web-based apps, you can use Cordova plugins. These plugins expose JavaScript APIs that allow you to integrate capabilities, such as camera, global positioning system (GPS), near field communication (NFC), and other hardware features. The Fire OS platform supports the entire suite of Cordova plugins. You can use the plugins as needed.
Build, test, and submit your app
Complete the following steps:
- Build your app app using the Cordova CLI.
- Run
cordova build android
from the project root directory to generate a debugAndroid package
file. - Install the debug
Android package
file on a Fire OS device. - Test your app's functionality, including any Amazon-specific features, such as In-App Purchasing (IAP) and Advertising ID. Follow the instructions in Test your app with App Tester and Live App Testing for IAP.
- (Optional) After testing, generate a release variant of your app. Follow the instructions in Cordova build command.
- Submit your app to the Amazon Appstore.
Related topics
- Update Your Web-Based Apps in Amazon Developer Console
- In-App Purchasing Overview
- Advertising ID Policy
Last updated: Oct 30, 2024