How to send Activity values to webview cordova?

0

How do I send Activity data and redeem in WebView with javascript from cordova / Phonegap index.html

    
asked by anonymous 22.10.2014 / 03:00

1 answer

1

Once you already have your WebView in action, you can execute a JavaScript method inside it like this:

webView.loadUrl("javascript:foo('" + bar + "')");

And within index.html you have the implementation of method foo() , receiving a parameter.

    
22.10.2014 / 15:32