question

apson avatar image
apson asked

Critical: State of WebView, and Web IAP API, etc.

We need clarification from Amazon on the status of IAP API 2 for web apps that run in the amazon WebView.

In addition, neither localStorage nor cookies work (persist) in "Web App Tester" however there is functionality in Web App Tester that allows this data to be cleared. It does not store anything anyway. Is this part of the WebView, now? If so, this is critical information so developers can plan on NON-web app alternatives and not waste time combing through documentation. A web app that requires authentication each time opened is not viable for any developer, obviously.

Is IAP API 2.0 a viable option in December of 2021? Are Web Apps still supported?

https://developer.amazon.com/docs/in-app-purchasing/iap-api-for-webapps-ref.html

Alarming Note: on this page you reference AmazonIapV2 however under the menu on the left under "Previous API Versions" there is a document no developer of a new app would read which is titled "Migrating from IAP v1.0 to IAP v2.0" -- I accidentally clicked it, thank god. Because it contains a "sunsetting" notice about v2.0 that made us laugh out loud:

"Important: We are sunsetting Amazon In-app Purchasing SDK v2.0 (IAP v2.0). This document provides information related to the outdated IAP v2.0 SDK. For the most up-to-date experience, use the Appstore SDK."

Nobody would bury this notice on the 1.0 to 2.0 migration guide, right? Did you mean to say you are sunsetting 1.0? If not, this notice needs to be placed in the following locations asap:

https://developer.amazon.com/docs/in-app-purchasing/iap-overview.html

and here:

https://developer.amazon.com/docs/html5-web-apps/webapp-setup-environment.html

and here:

https://developer.amazon.com/docs/fire-tv/getting-started-with-web-apps.html

Can someone at Amazon please advise?

iapfire tv
10 |5000

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

legalevo avatar image
legalevo answered

maybe this will help you check the playlist about IAP updates.

https://www.youtube.com/watch?v=tMhdf5W-70w&t=13s

10 |5000

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

Steve Taylor avatar image
Steve Taylor answered

If you have a bit of Java experience, I suggest creating a native app with a WebView via Android Studio. (It's easier than you might think.) You'll need to enable basic features:

webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setDomStorageEnabled(true);
webView.getSettings().setAppCacheEnabled(true);
webView.getSettings().setDatabaseEnabled(true);

I gave up on creating a web app because the Web App Tester doesn't support DRM, which I need. At least by creating a native app, you know it will work in production as tested before submission.

Don't bother with Cordova. It's a pain in the butt.

10 |5000

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