question

newuser-ad67e4bd-8ba6-402f-afd4-981013ce35f2 avatar image

window.AmazonIapV2 undefined

I am testing a html5 web app on a FireTv device, I've included both the necessary scripts from the example :

https://resources.amazonwebapps.com/v1/latest/Amazon-Web-App-API-tester.min.js

https://resources.amazonwebapps.com/v1/latest/Amazon-Web-App-API.min.js


However, the global window.AmazonIapV2 intermittantly evaluates to undefined and window.AmazonIapV2.addListener errors out.


Is there a temporal limit set on the request by IP from test devices ?



if (window.AmazonIapV2 === null) { 

}  
else {    
   window.AmazonIapV2.addListener('getUserDataResponse', function(resp) {});    
   window.AmazonIapV2.addListener('getProductDataResponse', function(data) {});    
   window.AmazonIapV2.addListener('purchaseResponse', this.onPurchaseResponse);    
   window.AmazonIapV2.addListener('getPurchaseUpdatesResponse',this.onPurchaseUpdatesResponse);  
}
iapfire tvweb appspurchasing
10 |5000

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

0 Answers