Android test devices
Set up test devices to make in-app purchases
1. Test devices
You can use both physical devices and emulators to run your app and test in-app purchases.
Make sure that the emulator has the Play Store installed. You can check that by selecting Tools->AVD Manager in Android Studio.
![Screenshot_9.png 303](https://files.readme.io/a6d45bd-Screenshot_9.png)
Emulators must use an emulator image with Google Play Store.
![Screenshot_1.png 678](https://files.readme.io/214db34-Screenshot_1.png)
2. Test account
The test account from the License testing step must be added to the test device first.
3. Add a PIN if needed
When you make an in-app purchase for the first time, Google may ask you to verify your account.
![Screenshot_12_crop.png 378](https://files.readme.io/35980b1-Screenshot_12_crop.png)
The following message may appear: "Something went wrong", even if you enter the correct password.
![Screenshot_11_crop.png 382](https://files.readme.io/2a13b84-Screenshot_11_crop.png)
To get rid of this error on your device navigate to Settings->Accounts-> choose your account from the list.
![Screenshot_13.png 382](https://files.readme.io/7e30a9d-Screenshot_13.png)
Select Google Account: Info, security & personalization.
![Screenshot_14.png 375](https://files.readme.io/7e8ad1d-Screenshot_14.png)
You have to finish signing in to continue. Click Sign in.
![Screenshot_15.png 372](https://files.readme.io/74d8c3d-Screenshot_15.png)
Google advises to add a lock screen. Click the Next button.
![Screenshot_16.png 378](https://files.readme.io/d35146c-Screenshot_16.png)
You can choose any convenient screen lock. For instance, let's choose Continue without fingerprint.
![Screenshot_17.png 375](https://files.readme.io/8b43480-Screenshot_17.png)
Select and set PIN for security.
![Screenshot_18.png 371](https://files.readme.io/6487f97-Screenshot_18.png)
![Screenshot_19.png 369](https://files.readme.io/48b1879-Screenshot_19.png)
You may need to click on Sign in again to update the data. Finally the authorization process is over and you can make in-app purchases.
![Screenshot_2.png 368](https://files.readme.io/d469074-Screenshot_2.png)
Updated about 1 year ago