question

coolprade avatar image
coolprade asked

Digital Bundling is not supported

HI , I am new to this sdk.i am using the sample app comes along with the sdk. I am getting the "Digital bundling is not sopprted " error . I have placed the amason.sdktester.product.josn file in sdcard of my device and also installed the tester apk. Please give some suggestions. Also , i want to impalement the search list based on predefined keyword "Gift for Her". In development Phase how to test the app
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 Coolprade, Thank you for writing to us. Normally, "Digital bundling is not supported" pop up comes over when the Amazon App Store is not installed in the device. But you have it in the device as you said. There are couple of follow up questions. 1. Can you run tester app and see "Amazon User Account Settings" section? Can you see the status as "Logged In"? Can you see Amazon User Id string there? 2. Is your account associated Amazon.com (US store)? 3. What is being printed in logcat for "response" in GlobalPurchasingListener.onPurchaseResponse() ? public void onPurchaseResponse(PurchaseResponse response) { Log.i(TAG, "onPurchaseResponse: " + response); .................... } For me it's coming like this 09-13 08:55:41.320: INFO/GlobalPurchasingListener.class(10848): onServiceStatusResponse: { "supportedPurchaseExperiences": [ "DIRECT_WITH_PREVIEW", "IN_APP", "DIRECT_WITH_DETAIL" ], "userData": { "marketplace": "US", "userId": "XXXXXXXXXXXXXXXXXXXXXXXXXXX" }, "requestId": "170c3bda-2efe-40e0-add9-4d154404f411", "canGetReceipts": true, "canSearch": true } When App Tester is not present in the device then it should print like this: 09-13 08:39:01.757: INFO/GlobalPurchasingListener.class(9948): onServiceStatusResponse: { "requestId": "1faea7ab-9e34-4288-a945-29247ade65fa", "supportedPurchaseExperiences": [ "DIRECT_WITH_PREVIEW", "DIRECT_WITH_DETAIL" ], "canGetReceipts": false, "canSearch": false }
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 Bhargav, There is no explicit login needed for MAA in test environment and app store client (through which the app is distributed) would provide the user to MAA SDK. You can see that In-App Shopping Experience and Digital Bundling are supported on Kindle and Generic Android devices on the apps what are distributed through Amazon App Store. In sandbox mode, the user would be provided by Amazon App Tester to the SDK. https://developer.amazon.com/public/apis/earn/mobile-associates/docs/overview So from above link you can see that if you target your app to be distributed through Amazon, you should be able to get all the required Purchase Experiences supported. The Purchase Experiences supported information would be available to onServiceStatusResponse() of the derived class of ShoppingListener. Please check what response you are getting there. You did not mention where did you get the 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 Bhargav, Thank you for writing back. The json file is used only in sandbox by App Tester. The Amazon App Tester is a developer tool that allows developers to test In-App Shopping feature of the Mobile Associates API integration in a production-like environment before submitting their app to Amazon for publication. It allows developers to construct test cases that cover all responses generated by the API, and gives them confidence that their app runs correctly and will be published. In a live environment, the app makes API calls to the Amazon Mobile Associates library. The library, in turn, makes IPC calls to the Amazon Client on the device. The Amazon Client then communicates with the Amazon services to fulfill requests such as the fetching product information, or completing the purchase. For the In-App Shopping experience, only apps that have been approved and published through the Amazon Apps & Games Developer Portal can communicate with the Amazon Client. This is a problem for developers who want to see how their app behaves in a live environment before it is submitted for publication. The Amazon App Tester solves this problem by providing a means to test the app before submission.
10 |5000

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