poiuytrez / AndroidInAppBilling

Android App Billing plugin for Cordova
173 stars 144 forks source link

Code refactored for a better handling of async callbacks #104

Closed maxs15 closed 8 years ago

maxs15 commented 8 years ago

This PR introduce a code refactoring for a better handling of async callbacks. Previously you couldn't call multiple async functions because the plugin was only keeping track of one callback reference, all the previous methods callbacks were lost... The code is now cleaner and it works smoothly, this PR aims to fix a problem described here: #102. A convenience method isPurchaseOpen has been added too in order to check if the Google Play purchase view is currently open.

Plugin deployed in an app in production and everything works perfectly :+1:

poiuytrez commented 8 years ago

Great ! Thank you !