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.

Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
  • Possible help: http://stackoverflow.com/questions/2112965/how-to-get-the-android-devices-primary-e-mail-address Another possible help: http://developer.android.com/training/id-auth/identify.html – LuckyMe Aug 06 '13 at 15:03
  • 1
    @LuckyMe: those don't show how to actually get a _current_ Google Play account with `AccountManager`. – Violet Giraffe Aug 07 '13 at 09:36

2 Answers2

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.

  • 2
    I don't need any confidential information, though. I just need some ID unique for this account. – Violet Giraffe Aug 04 '15 at 11:09
  • 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. – Sandeepa Nadahalli Aug 04 '15 at 12:04
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.

David Murdoch
  • 87,823
  • 39
  • 148
  • 191