You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.
My app is based on the simple-live template, and I have been testing it in hosted mode through the Web App Tester on the FIre TV and on Safari in MacOS. When I press back from the main menu I get a confirmation dialog about closing. If I click OK in both cases, the app closes fine and everything works as intended. The problem comes when I install the packaged apk. I am unable to close the app after choosing OK on the exit dialog. After selecting OK in the close dialog, the app remains open, and the remote becomes unresponsive to any buttons, except for the back button.
The original close function in app.js remains the same:
this.exitApp=function(){if(confirm("Are you sure you want to exit?")){window.open('','_self').close();}buttons.resync();};
The cordova documentation regarding packaging an apk is outdated by a few years, so I've used older versions that are able to produce the apk:
Cordova 3.6.0-0.2.8
Android SDK 19
Latest Amazon WebView API SDK
Cordova config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widgetid="com.bulsat.firetv"version="0.0.1"xmlns="http://www.w3.org/ns/widgets"xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Bulsatcom</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<authoremail="[email protected]"href="http://cordova.io">
Apache Cordova Team
</author>
<contentsrc="index.html" />
<accessorigin="*" />
<platformname="amazon-fireos">
<iconsrc="www/assets/icon/icon.png" />
<preferencename="android-targetSdkVersion"value="19" />
</platform>
</widget>
My app is based on the simple-live template, and I have been testing it in hosted mode through the Web App Tester on the FIre TV and on Safari in MacOS. When I press back from the main menu I get a confirmation dialog about closing. If I click OK in both cases, the app closes fine and everything works as intended. The problem comes when I install the packaged apk. I am unable to close the app after choosing OK on the exit dialog. After selecting OK in the close dialog, the app remains open, and the remote becomes unresponsive to any buttons, except for the back button.
The original close function in app.js remains the same:
The cordova documentation regarding packaging an apk is outdated by a few years, so I've used older versions that are able to produce the apk:
Cordova config.xml:
platforms/amazon-fireos/AndroidManifest.xml:
The text was updated successfully, but these errors were encountered: