In-app purchase: get the name or ID of the Google Play account that's requesting a purchase

5.5k Views Asked by At

I want to get a name / ID of the user making a purchase. I would like to do without AccountManager if possible, as its use requires an extra permission. Even with AccountManager I don't see a way to determine the current account, so any advice is welcome.

2

There are 2 best solutions below

2
On

I don't think that's even possible. I tried all possible ways before contacting Google support. And the reply I got was this:

Thanks for contacting Google Play Developer Support. Please note that Google does not provide access to any confidential user information, such as email address, mailing address, or phone numbers. We place a high value on user confidentiality and privacy, so I'm sure you can understand our position regarding this information.

We sincerely appreciate your understanding. Thanks for supporting Google Play!

Regards, Google Play Developer Support

In the query, we had clarified that it is for post-sales support.

Hope this helps.

0
On

Google stores an inventory of everything the user purchased via in app billing. You may be able to use an ID from one of the purchases as a unique id for your user. Of course, this requires that users purchase something first.