i’ve written a plugin for android which when called from the js of my app, calls a particular js function of my app with a parameter.
So in the java code for my plugin, its like
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
super.loadUrl("alert('voila');");
but this js (alert) is not neing executed. i get an error saying
java.net.SocketException: Address family not supported by protocol.
after it times out. The rest of the app works fine. What could be wrong so that its timing out and not working?
A JavaScript statement is not a url. It needs to be prefixed with javascript: like :