Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Play Billing Library 3.0 Released. How to migrate from 2.2.0, any changes needed?

https://developer.android.com/google/play/billing/release-notes

I have implemented in app purchases (non consumable one time purchases only) using the version 2.2.0 billing library. Now the latest update has come which provides AIDL migration guide, but what about the devs already using the previous latest version.

Do we have to make any changes or the code will work as it is? (Of course I'll just test it, but want to ensure I'm not missing anything)

Thanks.

like image 266
Nishant Singh Avatar asked Jun 17 '20 12:06

Nishant Singh


People also ask

How do I change my Google Play Billing Library unity?

From the Unity menu bar, select Google > Play Billing > Build Settings. In the Play Billing Build Settings window, click Fix.


1 Answers

Generally, so far, the changes seem limited to the release notes: https://developer.android.com/google/play/billing/release-notes#3-0

If you're not using any of the removed methods and take care of the warnings provided by nullability annotations, you should be fine.

Also, take into consideration the default policies are changing by 1st of November '20: https://android-developers.googleblog.com/2020/06/new-features-to-acquire-and-retain-subscribers.html

Basically, if you don't support account hold, account restore, these will be mandatory by then. Also subscription pause and re-subscribe will be by default turned ON, don't forget to turn them off if you don't want them, all these use-cases will need testing. Sorry for the linked solutions, but it's well documented.

You have it working with billing lib 2.2.0 , I suppose you didn't really integrate it via AIDL, did you? Then you shouldn't be looking-up for that migration.

like image 61
Misca Avatar answered Oct 20 '22 01:10

Misca