开发者控制台
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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:

  1. Install the latest Apache Cordova version. This installs Node.js and the Cordova command-line tool.

  2. Set up Cordova Android platform. This is required because Amazon Fire OS is a fork of Android.

  3. 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:

  1. Build your app app using the Cordova CLI.
  2. Run cordova build android from the project root directory to generate a debug Android package file.
  3. Install the debug Android package file on a Fire OS device.
  4. 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.
  5. (Optional) After testing, generate a release variant of your app. Follow the instructions in Cordova build command.
  6. Submit your app to the Amazon Appstore.

Last updated: Oct 30, 2024