Amazon IAP does not call onPurchaseResponse

I have an Android app that uses IAP. I am sending Purchase PurchasingManager.initiateGetUserIdRequest () and successfully > to onGetUserIdResponse.

After receiving the response, the PurchaseManager.initiatePurchaseRequest ("sku") request is called, but, unfortunately, the desired onPurchaseResponse request is never called.

My Applications IAP Applications are Amazon Approved. Any help on this?

+4
source share
1 answer

In our case, the problem was that we added the anroid: exported = "false" flag to our Amazon Response Response responder in the manifest:

<receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver" android:exported="false" > ... </receiver> 

This prevents Amazon's shopping app from being able to call back to your app using intentions, so you need to uninstall it. Lesson learned ...

+1
source

Source: https://habr.com/ru/post/1436796/


All Articles