Developing an app for Fire TV using Cordova is a fantastic option, especially when you add the Android platform to your development process. By doing so, your app will be compatible with both Android devices and Fire TV.
cordova platform add android
When running on Fire TV, the application utilizes the Amazon Webview, which is a tailored version of the Android webview. This may result in slight variations in performance. It's important to note that creating cross-platform apps that deliver an exceptional user experience on TV screens can be challenging. Avoid using the same UI as your iOS or mobile Android app, as it may lead to subpar interactions on larger displays. Instead, customize the remote keys mapping, ensure proper viewport settings, and CSS responsiveness for 720p or 1080p resolutions.
For more insights on designing user interfaces for TV devices, refer to the guidelines on the Developer Portal.
Furthermore, explore the documentation provided at Building web apps on Fire TV. The Appstore offers three submission methods for web apps:
- Hosted - submit your web app URL, and the Appstore will package it automatically with a Cordova-like wrapper
- ZIP - upload a zip file containing HTML/CSS/JS and media assets, and the Appstore will package it with a Cordova-like wrapper
- Traditional - create a new "Android app" in your console and upload the packaged Cordova APK
Consider utilizing frameworks optimized for TV experiences, such as the Web App Starter Kit.