question

zengotim avatar image
zengotim asked

Web App Tester not finding SDK Tester

Hi,

I installed the Web App Tester from Amazon Appstore, then pushed my amazon.sdktester.json to the device, then installed the App Tester from Amazon Appstore. The web app i am testing still gives me a popup telling me to install the SDK tester. I have run the tester and it seems to be an updated version of what is described here:

https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/iap-sdk-tester-for-webapps#sdk-tester-environments

(it has more fields than described on the instruction page). I have also tested this by hosting the button pusher sample with the same result. Help?

iaptestingweb apps
1 comment
10 |5000

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

I should add that this is a Fire TV Stick device.

0 Likes 0 ·
zengotim avatar image
zengotim answered

Hi Levon,

i wasted half a day trying to find the Web App Resources zip which you are talking about and was unable to do so: none of the zips I downloaded from Amazon contained an APK. i installed the version of the IAP SDK Tester from Amazon App Store HERE and that is what we are trying to use. If there is a better tester available, please post a link to the zip file it is contained in; none of my downloads contained one.

The tester is now working in that it answers all the calls, but the popup still appears every time the API is loaded, which is annoying but manageable. The typo on the filename above was my error made here; the json file is properly loaded as noted above and functioning.

Thank you for your assistance.

1 comment
10 |5000

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

I have accepted my own answer as I got through this pretty much on my own. I appreciate the responses from Levon@Amazon but they did not assist me in using the dev tools.

0 Likes 0 ·
Nick Gardner avatar image
Nick Gardner answered

Hi,

What folder have you put the amazon.sdktester.json file in?

10 |5000

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

zengotim avatar image
zengotim answered

Hi NickG and thank you for your response,

The amazonm.sdktester.json file is in /mnt/sdcard/amazon.sdktester.json as per instructions here --> https://developer.amazon.com/public/solutions/platforms/webapps/docs/testing-iap.html#SDK Tester Environments

...and can be viewed in the SDK tester app in the section "Items in JSON File." However, anything done in the webapp tester brings up the dialog "Please install the IAP SDK Tester..."

10 |5000

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

Levon@Amazon avatar image
Levon@Amazon answered

Hi zengotim,

Have you installed the SDK Tester as per instructions on this page: https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/iap-sdk-tester-for-webapps#load-the-sdk-tester

Load the SDK Tester (AmazonSDKTester.apk) included in the Web App Resources zip file using the following command:

adb install AmazonSDKTester.apk

Also, you mention your JSON file as "amazonm.sdktester.json" -- it should be "amazon.sdktester.json", please see here how to copy it to your device:

https://developer.amazon.com/public/apis/earn/in-app-purchasing/docs-v2/iap-sdk-tester-for-webapps#load-the-json-data-file

10 |5000

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