android inapp-billing - find out API version

ぐ巨炮叔叔 提交于 2019-12-21 02:36:31

问题


I'm pretty sure that i'm using Inapp-billing v3 in my app ("IInAppBillingService.aidl" is v3 as far as i know - "IMarketBillingService.aidl" would be v2 according to the google-documentation).

however, i received an email from google asking me to update my app from v2 to v3 as at least one purchase was made using the old API in the past 3 months.

Also - i never had V2 implemented in my app so an old version should not be the case.

Is this a mistake by google, or was one of my uses purchasing something using a old play-store, so some kind of support/compatibility-mode was activated?

Or am i mistaking and i'm really using v2 of the api?? how can i find out (for sure)which version i have implemented?

this may be a stupid question, however, the email from google confused me...


回答1:


I got the same email as well and am confused by it.

I also use IInAppBillingService.aidl and within IABHelper there's a method launchPurchaseFlow which calls getBuyIntent with the first parameter being version, which is set to 3 so I'm pretty certain I'm using v3.

The IABHelper I'm using is littered with v3 checks and comments.

Suggest you check the same piece of code to make sure and put it down to a Google error otherwise.



来源:https://stackoverflow.com/questions/25821349/android-inapp-billing-find-out-api-version

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