android - Google Play In-App Purchase returns error code -1008: null puchaseData or dataSignature -


i attempting implement google play in-app purchase v3, after implementing in v2. however, every single time attempt purchase 1 of real in-app products, receive following follow-up error:

iab returned null purchasedata or datasignature (response -1008:unknown error)

this coming iabhelper.java class, line 452:

if (purchasedata == null || datasignature == null) {     logerror("bug: either purchasedata or datasignature null.");     logdebug("extras: " + data.getextras().tostring());     result = new iabresult(iabhelper_unknown_error, "iab returned null purchasedata or datasignature");     if (mpurchaselistener != null) mpurchaselistener.oniabpurchasefinished(result, null);     return true; } 

i have verified a) app signed, b) version of app matches draft version # on google play store, , c) user attempting purchase has been added test user. have tried across 3 test accounts , 4 in-app purchase subscription types.

  • should concerned error code?
  • is issue confined non-production releases?
  • will affect customers in field if/when release version?
  • can test in-app purchase end-to-end once published live iab version 3? realize can use android.test.purchased item type, , have (it works), don't consider valid end-to-end test.

i had problem myself. after while found did wrong. calling wrong method on iabhelper.

if call mhelper.launchpurchaseflow(...) sku registered subscription on google developer console result in error: iab returned null purchasedata or datasignature (response -1008:unknown error).

if have sku registered subscription have use method: mhelper.launchsubscriptionpurchaseflow(...) instead.

hope helps.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -