Hi all,
I’m not able to get working the callback function for executeScript.
This is the code
$cordovaInAppBrowser.executeScript(
{code: “alert(‘hello’)”},
function (values) {
console.log(‘callback’);
}
);
The code:alert(‘hello’) is fired, so I got ‘hello’, but not the console log ‘callback’ (tried also with an alert)
Doing some debug, I saw that the part of the code where the callback should be executed is in cordova.js
msgs is ‘undefined’, and not equal to ‘@Null arguments’ as expected.
So ‘androidExec(success, …)’ is never executed. success is the callback for executeScript.
Hi! Great idea, having some similar problems with cordova saying ‘callback is not a function’. Where did you place that code? app.js or in with the service you are using?