Open this app to confirm your subscription before Jun 23, 2020

走远了吗. 提交于 2021-01-24 07:52:22

问题


Open this app to confirm your subscription before Jun 23, 2020. What is causing this?


回答1:


PurchaseResult was returning my purchases with acknowledge as false. Using the following code, managed to fix the issue.

for (Purchase purchase: purchasesResult.getPurchasesList()) {
                AcknowledgePurchaseParams acknowledgePurchaseParams =
                        AcknowledgePurchaseParams.newBuilder()
                                .setPurchaseToken(purchase.getPurchaseToken())
                                .build();
                acknowledgePurchaseParams.getDeveloperPayload();

                AcknowledgePurchaseResponseListener acknowledgePurchaseResponseListener = new AcknowledgePurchaseResponseListener() {
                    @Override
                    public void onAcknowledgePurchaseResponse(BillingResult billingResult) {
                        BillingResult billingResult1 = billingResult;
                    }

                };

                mBillingClient.acknowledgePurchase(acknowledgePurchaseParams, acknowledgePurchaseResponseListener);
            }


来源:https://stackoverflow.com/questions/62489200/open-this-app-to-confirm-your-subscription-before-jun-23-2020

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