OferR
OferR

Reputation: 1644

Android In-App Billing: Is there a way to get purchases for a specific account?

With Android In-App Billing IAB 3, the API can query the current purchases using getPurchases().

If the device has multiple Google accounts, what is being returned?

Is there a way to getPurchases() for a specific account?

Thanks

Upvotes: 4

Views: 1570

Answers (1)

OferR
OferR

Reputation: 1644

In short, the answer is 'No'. There is no way to control which account is queried.

At the time of writing this answer, the account that is used for getPurchases() is the last account added to the device. (BTW this is also the account used when in-app purchasing). According to the first link, this issue is currently being investigated by Google.

Some related links:

https://plus.google.com/111471886409455069782/posts/RognJUHbBfc

https://code.google.com/p/android/issues/detail?id=53307

Does In App Billing support multiple accounts?

Upvotes: 2

Related Questions