Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android In App purchases not syncing immediately across multiple devices

I purchased an item on one device. Then I go to the other device, launch the App, but the item's purchase information is still not available for use on the second device (iabhelper does not return the item when you query the inventory). Attempting to purchase just shows the "Already owned" dialog. (I could possibly use this as a point to go ahead and download the item, but feels weird...)

The only solution that works so far is if I restart the device, then I immediately see the Download option in my UI (instead of Buy), since Iabhelper then returns the correct info)

Anybody else face this issue? Is there a workaround which makes it seamless to the user?

like image 522
AAP Avatar asked Aug 19 '13 04:08

AAP


People also ask

Do in app purchases transfer between devices Android?

Provided you are logged in with the same app store account that made the purchase then you can re-download the app onto a new device.

Can I use purchased apps on multiple devices Android?

You can use apps you bought on Google Play on any Android device without paying again. However, each device must have the same Google Account on it. You can: Install an app on more than one Android device.


1 Answers

I am not 100% sure but Google Play Services are most probably using their data storage, which has eventual consistency, and that means that not everything is synchronized right away. Just a guess. You can try clearing the Google play services cache, but I'm guessing that it is as annoying as restarting the device.

like image 124
Ivan Avatar answered Oct 06 '22 01:10

Ivan