Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in In-App purchase V3? inventory.getPurchase(MYSKU) is null #192

Open
GoogleCodeExporter opened this issue Mar 28, 2016 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

I've implemented In-App purchase V3 (from IabHelper sample) into my app and it 
works fine in most cases.

But I've found a problem retrieving purchased SKU's...

Here are my steps to reproduce:

1. Buy in-app item with MyApp

2. Exit MyApp

3. Switch device to offline mode

4. Clear all data and cache of Google Play Store app

5. Start MyApp (the in-app item of course is not available, because of offline 
mode and Google Play Store app cache cleared)

6. Exit MyApp

7. Switch device to online mode again

8. Start MyApp and here comes the problem:

- Retrieving of inventory (onQueryInventoryFinished) returns "ok" but 
inventory.getPurchase(MYSKU) is null

- So the item purchase button in MyApp is availabe for another purchase.

- When clicking the purchase button in MyApp, Billing-Api shows dialog "Item 
already purchased."

- After exiting and restart MyApp, retrieving of inventory again returns "ok" 
and inventory.getPurchase(MYSKU) is null

The only way to get the inventory with the purchased item is to:

- Start Google Play Store app and click on "My apps" and after this, when 
starting MyApp, the item is returned in onQueryInventoryFinished again normally.

Device: Google Nexus 10
OS: Android 4.4.4
Google Play Store App version 4.8.20


Sorry for my bad english.

Original issue reported on code.google.com by [email protected] on 6 Jul 2014 at 4:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant