本文介绍了亚马逊IAP不调用onPurchaseResponse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,这是使用IAP。我送的 PurchasingManager.initiateGetUserIdRequest()的和获得的用户ID成功中的 onGetUserIdResponse 的。

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

得到响应的 PurchasingManager.initiatePurchaseRequest(SKU)后的调用,但不幸的是所需的 onPurchaseResponse 的似乎永远不会被调用。

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

我的应用程序IAP项都受到亚马逊的批准。
任何帮助?

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

推荐答案

在我们的例子中,这个问题最终被,我们添加了android:在清单将导出=false的标志,我们的亚马逊IAP响应接收器:

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>

这prevents从能够通过意图回调到您的应用程序,所以你需要将其删除亚马逊购买的应用程序。教训...

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...

这篇关于亚马逊IAP不调用onPurchaseResponse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 21:31