Use WKWebView instead of UIWebView
Does OnsenUI support WKWebView?
If so, what are the steps?
Still waiting for an answer…patiently.
Sorry it has taken so long to reply. This thread slipped under the radar.
In-app browsers are outside the scope of Onsen UI. It’s really a question of whether the platform you’re using to turn your app from JS to native code (such as Monaca or Ionic) supports WKWebView.
Or maybe I’m misunderstanding your question. If the question is really “will Onsen UI code run in a web view” then the answer is yes, and you can use
ons.platform.isWebViewfor web view specific code https://onsen.io/v2/api/js/ons.platform.html#method-isWebView
@emccorson, I probably should have said Monaca and whether WKWebView is supported and if so what are the steps to get a simple app to work correctly. I am reading that soon UIWebView will be deprecated by Apple and I wan to be ready; please see: https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html
I tried https://github.com/apache/cordova-plugin-wkwebview-engine but connections to a a web server using Ajax and local storage did not work at all.
If it works in Cordova, then it should work with Monaca since Monaca is built on top of Cordova.
From the article you linked it looks like you need to use the cordova-plugin-wkwebview-engine plugin.
Again this isn’t an issue with Onsen UI so if you need help getting it set up, contact Monaca Support Team.
@emccorson, thanks for the info. Is it possible for you to move this topic to Monaca section of the forum?
Ok I’ve moved it now.
I’d recommend trying out installing the wkwebview plugin from a new monaca project and then following the instructions in the plugin README to get it working.
Then if you are still having problems post the code from your project somewhere (e.g. GitHub) and link it here so we have a better idea what you’re trying to do.