mogoweb / chromium_webview

Android WebView wrapper based on chromium
http://mogoweb.github.com
BSD 3-Clause "New" or "Revised" License
514 stars 160 forks source link

Unable to call JavaScript Method from Chromium webView #11

Closed ani29 closed 10 years ago

ani29 commented 10 years ago

I tried calling webView.loadUrl("javascript : TestJavaScripMethod() ") , where TestJavaScripMethod is java script methiw defined in loaded HTML. then my app is crashing with error "Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 31909 (JavaBridge)" in logcat

It works fine with android default webview, but it is not working with chromium webview

ani29 commented 10 years ago

I am getting crash when there is a javascript alert in my java script method.

MSDevs commented 10 years ago

How did you solve it?

ani29 commented 10 years ago

I have used this : webView.loadUrl("javascript:sample()");

where sample() is java script function created inHTML

Aniruddh Rathore

On Tue, Mar 25, 2014 at 6:41 PM, MSDevs notifications@github.com wrote:

How did you solve it?

Reply to this email directly or view it on GitHubhttps://github.com/mogoweb/chromium_webview/issues/11#issuecomment-38561853 .