question

ankitachoudhari avatar image
ankitachoudhari asked

In-App Product Detail and In-App Product Preview Error

Hi, I have integrated In-App Product Detail and In-App Product Preview from Amazon SDK in my application. I have installed Amazon AppStore as well as Amazon App Tester on the device. I have also followed all the steps mentioned in the implementation guide. But I am always getting the following error in the console. 12-10 15:26:28.629: E/AmazonMobileAssociates ProductPopoverActivity(27542): Product Preview Popover launch failed Please can anyone help me with this. Thanks in advance.
mobile associates
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 Ankita, Thank you for writing to us. So there are two things wrong here. For the 2nd one, see https://forums.developer.amazon.com/forums/thread.jspa?threadID=1845 For the 1st one, Can you see response.getStatus() in onPurchaseResponse while you try to show product Preview? Purchase StatusResponse does return "INVALID_ID" status code in case ASIN is not valid. The status code clearly communicates that Product Detail Popover will not be served. Message was edited by: Sujoy@Amazon
10 |5000

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

ankitachoudhari avatar image
ankitachoudhari answered
Hi Sujoy, The response I am getting in the onPurchaseResponse method is as below: { "status": "FAILED", "requestId": "46d53e92-7305-4f5b-8da8-0956079ffe57", "receipts": [] } Also, I have followed all the steps mentioned in the discussion of which link you have given. I have also copied the drawable folder from the MAAAndroidSampleCode project with the correct spelling. But still I am getting the same error. Am I missing something else here? The same ASIN works perfectly for PurchaseExperience.IN_APP. Thanks for the response.
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 Ankita, Thank you for writing back. Can you share the ASINs you are using? If you do not want to paste it publicly, please send it through ContactUs.
10 |5000

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

ankitachoudhari avatar image
ankitachoudhari answered
Hi, Thanks for the reply. I used B008GGCAVM. This worked for Direct Linking - Open Product Page Request. I also copied a JSON file with B00481PUWK product in it. I used it for In-App Purchase Experience and it worked. But for Product Detail and Product Preview, it failed with the same error. Please help me with this.
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 Ankita, Can you please check whether you have copied all the PNGs from Apps-SDK\Android\MobileAssociates\drawble to the drawable folder in your app?
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
Also, B008GGCAVM is third party excluded. Can you try with B00481PUWK (or a different one) for Product Detail and Product Preview?
10 |5000

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

ankitachoudhari avatar image
ankitachoudhari answered
Hi Sujoy, I had copied the entire drawable folder into my application's res folder. I also took care of the spelling. I have now verified all the images in the drawable folder of both the applications and found that my app is having all the images of MAAAndoidSampleCode's drawable folder.
10 |5000

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

ankitachoudhari avatar image
ankitachoudhari answered
Hi Sujoy, I tried with B00481PUWK, B002Y6CWCM and also some other product ids from the JSON file. I got the same error.
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 Ankita, Thank you for writing back. I think you have copied the images from below path in Apps-SDK.zip Apps-SDK\Android\MobileAssociates\samples\MAAAndroidSample\res\drawable Instead, the path should be Apps-SDK\Android\MobileAssociates\drawable Below is the list of pngs you need to copy from above folder to to your project. alogo.png bg_custom.9.png logo.png quickaction_arrow_down.png quickaction_arrow_left.png quickaction_arrow_right.png quickaction_arrow_up.png
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
Did you check?
10 |5000

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