How to send Activity values to webview Cordova?

Asked

Viewed 130 times

0

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

1 answer

1


Once you’ve owned your WebView in action, you can execute a method Javascript inside her like this:

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

And within the index.html has the implementation of the foo(), receiving a parameter.

  • OK @Paulo Rodrigues! worked pretty, thank you very much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.