question

robin avatar image
robin asked

Kindle Fire HD7 - Favorites icon launch for Html5 app instance

I wish to understand the launch process of a 'Published Html5 app' on a Kindle device. Once the necessary image icons are supplied with the submission, I can envision that they are used as an identifier with the download-purchase from the Amazon-Kindle app store. The app is installed and the icon becomes visible as a favorite or in the home carousel. When I test using the Amazon web-app tester, the app opens fulls screen inside the web-app tester process memory space and doesn't appear to be inside the Silk browser as there are no viewable tabs. Q: After a purchase-download, when the end user sees the icon in the favorites section and 'clicks' on it to launch the Html5 app, does the Kindle device assign a separate unique memory process and execute as the webapp tester does and as a native app might; or, . . . does the 'click' event start the app in a unique new Silk browser instance; or, . . . does the 'click' event open in an existing instance of the Silk browser in a new tab? Please provide the link to an existing Html5 app in the Amazon app store that we developers may use as an example to view these specific details. There are too many unanswered details omitted from the online documentation. no luck searching: https://developer.amazon.com/help/faq.html https://developer.amazon.com/* http://www.amazon.com/gp/help/* http://kindle.s3.amazonaws.com/Kindle_Fire_Users_Guide.pdf http://aws.amazon.com/mobile/* Thank you in advance, Robin
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Robin, This query is already answered in this thread : https://forums.developer.amazon.com/forums/thread.jspa?threadID=1529&tstart=0 Basically the web app what runs in browser, you can test it by using Web App Tester. Also this tester would make your app enabled to use Amazon IAP js api what is not possible when your are testing the app in silk or other browser. Now when you would submit the app to us, we would make an Android native app (having activity life cycle and amazon web view) and publish it in the store. So the users are going to download an apk ultimately where your web app would be launched in Amazon Web View and looks like the native app. This is an example of Web App live in Store : http://www.amazon.com/gp/product/B00EGS2UTG
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

robin avatar image
robin answered
Thank you for the explanation. As the Html5 app will be running inside a separate process within (.apk wrapper) the 'web view' container, and not inside the Silk browser container, are there now two distinct localStorage instances, or does each process share the same local storage data? As browsers control their own local store for each domain, should the end user be running inside this .apk wrapper instance, there isn't an easy way to get to the Silk browser tab to tun a Silk instance. Q: Where is the local store data kept on the device? What is the file path? Q: How to repair a corrupt local store (for the Html5 specific domain only) e.g. key request returns an error without data, even null Thank you for the link to the AppStore Html5 app, that helps.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Thanks Robin for writing back. I have forwarded your query to the concerned team and will get back to you shortly.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Q: are there now two distinct localStorage instances, or does each process share the same local storage data? A: there are now two distinct localStorage instances, controlled separately. ~Q: As browsers control their own local store for each domain, should the end user be running inside this .apk wrapper instance, there isn't an easy way to get to the Silk browser tab to tun a Silk instance. ~A: Having a link target="_blank" should trigger the navigation to be handled by Silk or default browser. Q: Where is the local store data kept on the device? What is the file path? A: the local storage is kept in the app's data directory, but the web app does not have direct access to those files. Using the localStorage api will work. Q: How to repair a corrupt local store (for the Html5 specific domain only) e.g. key request returns an error without data, even null A: Using the localStorage api will work and is the recommended way of addressing data corruption issues.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.