Is it possible to test Android InApp billing with x86 VM
-
16-06-2021 - |
문제
From the doc , it said
To test in-app billing in an application you must install the
application on an Android-powered device. You cannot use the
Android emulator to test in-app billing.
But anyone have success in testing with Android x86 VM (http://www.android-x86.org)?
I suppose the VM should act like a real device and should be okay to test?
해결책
The actual platform doesn't really matter. IAB uses the Android Market/Play store application to provide its services, so if you have that installed and properly working, you will be able to test. If not, you won't. Since the IAB code is platform-independent, you don't really need to test it on all platforms you need to support.
다른 팁
I found this project
Allows you to test in app billing applications directly from the emulator by simply adding a library and redirecting requests to a stub.
However I was not able to integrate this library with the sample code in extras/google/play_billing/
It would be very useful to write a step by step how to for the integration of this project in the sample code.