How can I call native functions in Phonegap through Javascript?

前端 未结 1 1535
长情又很酷
长情又很酷 2020-12-17 06:53

I am developing an application for Android using PhoneGap. I have implemented some of the functions in Java. How can I call those Java functions using Javascript?

相关标签:
1条回答
  • 2020-12-17 07:21

    there is a similar question https://stackoverflow.com/a/8733773/905565

    Write your own plugin, or provide JavaScript interface with addJavascriptInterface method of WebView

    Access to webview in your phonegap activity with this.webView

    0 讨论(0)
提交回复
热议问题