Hello,
I am using in app subscriptions. It is working fine but the problem is in puchasecompleted method, i call manager.getownedproducts in puchase completed. With in app there is no problem but with subscriptions i get an error ( by the way if i close and re open the app there is no problem but just after the purchase i cant get owned products and activate account ) i get this error:
I checked stackoverflow found a topic http://stackoverflow.com/questions/...ns-error-code-1008-null-puchasedata-or-datasi
according tho them the problem is :
"If you call mHelper.launchPurchaseFlow(...) with an SKU that is registered as a subscription on Google Developer Console it will result in the error: IAB returned null purchaseData or dataSignature (response -1008:Unknown error).
If you have a SKU that is registered as an subscription you have to use the method:mHelper.launchSubscriptionPurchaseFlow(...) instead."
How can i fix this bacause it is impossibe to activate a feature upon purchase. Alotugh the charge is made to customers credit card , event not firing until relaunch?
TY
I am using in app subscriptions. It is working fine but the problem is in puchasecompleted method, i call manager.getownedproducts in puchase completed. With in app there is no problem but with subscriptions i get an error ( by the way if i close and re open the app there is no problem but just after the purchase i cant get owned products and activate account ) i get this error:
B4X:
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Arrived: 1, 1
Ending async operation: launchPurchaseFlow
Successful resultcode from purchase activity.
Purchase data: null
Data signature: null
Extras: Bundle[{RESPONSE_CODE=0}]
Expected item type: inapp
BUG: either purchaseData or dataSignature is null.
Extras: Bundle[{RESPONSE_CODE=0}]
IAB returned null purchaseData or dataSignature (response: -1008:Unknown error)
** Activity (main) Resume **
I checked stackoverflow found a topic http://stackoverflow.com/questions/...ns-error-code-1008-null-puchasedata-or-datasi
according tho them the problem is :
"If you call mHelper.launchPurchaseFlow(...) with an SKU that is registered as a subscription on Google Developer Console it will result in the error: IAB returned null purchaseData or dataSignature (response -1008:Unknown error).
If you have a SKU that is registered as an subscription you have to use the method:mHelper.launchSubscriptionPurchaseFlow(...) instead."
How can i fix this bacause it is impossibe to activate a feature upon purchase. Alotugh the charge is made to customers credit card , event not firing until relaunch?
TY
Last edited: