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

2

19

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.

Tallent answered 6/8, 2013 at 14:53 Comment(2)
Possible help: #2113465 Another possible help: developer.android.com/training/id-auth/identify.htmlDuckbill
@LuckyMe: those don't show how to actually get a current Google Play account with AccountManager.Tallent
T
6

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.

Thaxter answered 4/8, 2015 at 10:26 Comment(2)
I don't need any confidential information, though. I just need some ID unique for this account.Tallent
I understood that. But Google is not going to give any unique ID. I have tried my best. Please update your question if you make any progress with that. Also, I have gone through my earning reports on Merchant portal. All I can get is a unique orderID.Thaxter
H
0

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.

Horizontal answered 28/10, 2015 at 12:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.