Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it necessary to migrate from "Google Play Billing with AIDL" to "Google Play Billing Library"?

I know that "Google Play Billing with AIDL" deprecated, but the app on which I am working is so complex that I don't want to change the core parts of the application.

On the play console, I am getting the below message:-

"We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date."

I checked that "Google Play Billing Library" internally is also using the same "Google Play Billing with AIDL", so I am a bit confused that if the issues could only be resolved only after updating the library.

In my code, I am already using the API version 3 of the billing APIs.

private IInAppBillingService billingService;

Bundle buyIntentBundle = billingService.getBuyIntent(3, packageName, sku, type, developerPayload);
billingService.getSkuDetails(3, application.getPackageName(),
                                    ITEM_TYPE_INAPP, bundle);
billingService.consumePurchase(3, application.getPackageName(), iabOrder.purchaseToken);
billingService.getPurchases(3, application.getPackageName(), ITEM_TYPE_INAPP, null);
billingService.isBillingSupported(3, application.getPackageName(),
                    ITEM_TYPE_INAPP);

Can anyone please help me out in finding the main reason of why is it that I am getting this particular message of using the 3rd version of Google Play Developer API.

like image 546
Nishant Chauhan Avatar asked Jul 23 '19 09:07

Nishant Chauhan


1 Answers

The Google Play Billing Library is the client API used in your Android app.

The Google Play Developer API is the server API used for managing purchases and managing your app on Google Play.

"We’ve detected that your app is using an old version of the Google Play Developer API. From December 1, 2019, versions 1 and 2 of this API will no longer be available. Update to version 3 before this date." is prompting you to update your Google Play Developer API, NOT the Google Play Billing Library used in your Android app.

https://github.com/android/play-billing-samples/commit/36459a4d015b40f8c6840f202fb1127c6ec95947 is an example of updating the Google Play Developer API to v3

like image 136
Caren Avatar answered Oct 21 '22 02:10

Caren