How do I send Activity data and redeem in WebView with javascript from cordova / Phonegap index.html
How do I send Activity data and redeem in WebView with javascript from cordova / Phonegap index.html
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.