BrowserComponent WKWebView or UIWebWiew on IOS13.4 hangs on “executeAndReturnString”

9 views
Skip to first unread message

Kandy Bitxenio

unread,
Jun 9, 2020, 11:07:17 AM6/9/20
to CodenameOne Discussions
Hi

please refer to:


Recently I asked you that the app hangs calling executeAndReturnString, you send me an example working, and works really, but is you set the property BrowserComponent.useWKWebView to true then the app hangs when call the method (executeAndReturnString).

Display.getInstance().setProperty("BrowserComponent.useWKWebView", "true");
BrowserComponent browserComponent = new BrowserComponent();
Display.getInstance().setProperty("BrowserComponent.useWKWebView", "false");
        ToastBar.showInfoMessage("navigator.userAgent.2:" + browserComponent.executeAndReturnString("navigator.userAgent"));

My apps fails on all of javascritp methods.

Regards, 

Shai Almog

unread,
Jun 10, 2020, 10:27:56 PM6/10/20
to CodenameOne Discussions
Hi,
setting useWKWebView to false is no longer supported since Apple no longer allows the UIWebView.
Reply all
Reply to author
Forward
0 new messages