poiuytrez / AndroidInAppBilling

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

Callback statement given in "onQueryInventoryFinished" method is not getting executed. #35

Closed umaarunachalam closed 10 years ago

umaarunachalam commented 10 years ago

phone gap version : 3.3.0-0.18.0

Callback calls inside the listener methods [onQueryInventoryFinished] are not getting executed. I am doing something like what is been given in the example . Could you please guide me through.


inappbilling.init(successInit,errorCallback, {showLog:true})

function successInit(result) {
// display the extracted text
alert(result); // make the purchase inappbilling.buy(successPurchase, errorCallback,"gas");

}
function errorCallback(error) { alert(error); }

function successPurchase(productId) { alert("Your item has been purchased!");

}

The callback calls inside "execute" method are working properly. I am not sure if this is a problem with the latest phonegap version.

umaarunachalam commented 10 years ago

Got Resolved .