iOS Question WebViewextra

megzz

Member
Licensed User
In B4A there is a method "addJavascriptInterface" so that if I want to call an app Sub from the javascript inside the webview, I just call it via APP.CallSub

Does this exist in B4i too? How? Sample code would be greatly appreciated.

Thanks in advance!
 

wl

Well-Known Member
Licensed User
app -> Javascript
Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title")))

Javascript -> app
OverrideUrl
 
Top