How to validate consumable purchase across multiple devices

Hello,

So I’ve implemented IAP in Android but one thing remains is how to validate a user across multiple devices?

For instance, user purchases a consumable on one phone and then logs in on another phone…

How can I validate the user has made a purchase on the other phone? The purchase is tied to the google account and not the phone. So is there a way to get info about the google account that is logged in currently?

I.E. I do not want to burden the user with creating an account just so I can persist…

It should happen automatically. We go by the user who is logged into Google Play, you can’t get around that, it is a Google and Apple requirement for security. If that same user logs onto another phone, any non-consumables and subscriptions will automatically be restored on Google, you’ll see ProcessPurchase triggered for each such product. For Apple, you need to explicitly call the restore process Unity - Manual: Restoring Transactions