Question

Why testing in-app-purchase is working on physical devices and not working on virtual?

  • 29 September 2023
  • 1 reply
  • 22 views

Badge +4

Im using app subscriptions for long time but it is my first time I’m trying to test the IAP on a virtual device. 

Testing the android version on a virtual Pixel 7 pro (api 33) and Pixel 7 (api 34), the flow is working normally as expected until I get “ Something went wrong”, “Error code 3”  however using the same testing account, the same code is working fine on a physical device. 

 

Im using flutter on a macbook device.

 

I’m sure the Play store is updated on virtual devices. 


1 reply

Userlevel 4
Badge +8

Hi, we recommend that you always test on a physical device for this reason. Testing with simulators/emulators sometimes encounters problems with purchasing, the most prominent reason being if Google Play is not properly installed on the device or because of the Google API version.

Reply