I'm experiencing an intermittent problem with In App Billing Version 3 
using IABHelper as provided by Google.

Before Launching a new purchase I check for unconsumed purchases 
with queryInventoryAsync.  If found I consume any unconsumed purchases and 
begin a new transaction, if not go directly to start a new transaction. 99% 
of the time it works fine.

Occasionally when queryInventoryAsync returns no unconsumed purchases, the 
following launchPurchaseFlow fails with Response : 7: Item already owned.

2013/03/21-16:27:32:084 SH-12C 2.3.3 INFO [IABHelper] Starting async 
operation: refresh inventory
2013/03/21-16:27:32:087 SH-12C 2.3.3 INFO [IABHelper] Querying owned items, 
item type: inapp
2013/03/21-16:27:32:093 SH-12C 2.3.3 INFO [IABHelper] Package name: 
jp.co.gmode.gp.client.example.bjk
2013/03/21-16:27:32:095 SH-12C 2.3.3 INFO [IABHelper] Calling getPurchases 
with continuation token: null
2013/03/21-16:27:32:119 SH-12C 2.3.3 INFO [IABHelper] Owned items response: 
0
2013/03/21-16:27:32:129 SH-12C 2.3.3 INFO [IABHelper] Continuation token: 
null
2013/03/21-16:27:32:132 SH-12C 2.3.3 INFO [IABHelper] Querying SKU details.
2013/03/21-16:27:32:134 SH-12C 2.3.3 INFO [IABHelper] queryPrices: nothing 
to do because there are no SKUs.
2013/03/21-16:27:32:135 SH-12C 2.3.3 INFO [IABHelper] Querying owned items, 
item type: subs
2013/03/21-16:27:32:137 SH-12C 2.3.3 INFO [IABHelper] Package name: 
jp.co.gmode.gp.client.example.bjk
2013/03/21-16:27:32:142 SH-12C 2.3.3 INFO [IABHelper] Calling getPurchases 
with continuation token: null
2013/03/21-16:27:32:167 SH-12C 2.3.3 INFO [IABHelper] Owned items response: 
0
2013/03/21-16:27:32:169 SH-12C 2.3.3 INFO [IABHelper] Continuation token: 
null
2013/03/21-16:27:32:171 SH-12C 2.3.3 INFO [IABHelper] Querying SKU details.
2013/03/21-16:27:32:177 SH-12C 2.3.3 INFO [IABHelper] queryPrices: nothing 
to do because there are no SKUs.
2013/03/21-16:27:32:179 SH-12C 2.3.3 INFO [IABHelper] Ending async 
operation: refresh inventory

2013/03/21-16:27:33:034 SH-12C 2.3.3 INFO [IABHelper] Constructing buy 
intent for jp.co.gmode.gp.charginglibexample.100points, item type: inapp
2013/03/21-16:27:33:082 SH-12C 2.3.3 INFO [IABHelper] Launching buy intent 
for com.mydomain..myapp.myexampleproduct. Request code: 1001
2013/03/21-16:27:42:829 SH-12C 2.3.3 INFO [IABHelper] Ending async 
operation: launchPurchaseFlow
2013/03/21-16:27:42:831 SH-12C 2.3.3 INFO [IABHelper] Purchase canceled - 
Response: 7:Item Already Owned

queryInventoryAsync is saying the user does not own the item, but 
launchPurchaseFlow says the user does.

Strangely after a wait (sometimes a few minutes, sometimes more) the 
problem resolves itself.

Has anyone experienced anything similar?

For reference I'm using the version of IABHelper last updated on March 15.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to