Amazon IAP doesn't invoke onPurchaseResponse

守給你的承諾、 提交于 2019-12-12 11:28:59

问题


I have an android app, which is using IAP. I'm sending PurchasingManager.initiateGetUserIdRequest() and getting the user ID successfully in onGetUserIdResponse.

After getting the response the PurchasingManager.initiatePurchaseRequest("sku") is invoked, but unfortunately the desired onPurchaseResponse seems never be called.

My applications IAP items are approved by amazon. Any help on this?


回答1:


In our case, the issue ended up being that we had added the android:exported="false" flag to our Amazon IAP Response Receiver in the manifest:

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

This prevents the Amazon purchasing application from being able to call back to your app via intents so you need to remove it. Lesson learned...



来源:https://stackoverflow.com/questions/12639349/amazon-iap-doesnt-invoke-onpurchaseresponse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!