I'm working with inappbilling module. Everything went smooth except one case not covered by the sample code:
When a user initiate any purchase action, the Play Store purchase view will pops up, since there's no cancel button in that view, so if a user decide to cancel, he naturally clicks anywhere outside the Play Store View and the View disappears. However this event is not caught by the 'purchasecomplete' event listener, which results in a background launchPurchaseFlow. As a result, when user initiate purchase action again. An uncaught error will occure: "Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress."
My question is: Is there anyway to catch this implicit cancel action? If not possible, how do I terminate the background operation when user wants to make purchase again?
Currently I need to kill the app for being able to make purchase again.