What user identification should I use to match in-app purchases on Google Play?

When using billing in the app on Google Play, you get a PURCHASE_STATE_CHANGED broadcast containing purchase information. At this moment you

  • Check purchase (possibly on your own server)
  • Record the purchase (almost certainly on your own server if its an unmanaged item)
  • Update the app to reflect the purchase

My question is: When registering a purchase on your own server, should you use a user ID to match multiple purchases (and use) of an unmanaged item? And how do you get this personality on Android?

NB, identification may not be device specific, since a user may have more than one device. It must be associated with the Google Play account used for purchase. The data in the intentions returning from Google Play does not seem to contain user identifiers (obfuscation or not).

I am looking for where / how to find the Google game id on Android and how to submit it to the AppEngine position.

+5
source share
1 answer

I saw your discussion in Google Groups a few months ago when Google Play Services was not yet released.

Google Play Services . . AccountPicker.

+1

All Articles