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 collet.s...@googlemail.com on 6 Jul 2014 at 4:14
Original issue reported on code.google.com by
collet.s...@googlemail.com
on 6 Jul 2014 at 4:14