Access external links with WKWebView (OpenURL)
-
I’m having trouble accessing external links when I make the APP for IOS.
My APP pulls the list of posts from Facebook of my client and the behavior of the APP by default would be to open the post page when I click on it.
When I add the Ionic WebView or Cordova WKWebView plugin, these URLs do not open.
I am using Quasar’s OpenURL to do this.
I have already researched a lot on the subject and I would like to know if there is any solution to this situation.
lines added to XML:
XML using IONIC WEBVIEW:
<preference name = “iosScheme” value = “httpsionic” />
<preference name = “ScrollEnabled” value = “true” />XML using CORDOVA WKWEBVIEW
<feature name = “CDVWKWebViewEngine”>
<param name = “ios-package” value = “CDVWKWebViewEngine” />
</feature><preference name = “CordovaWebViewEngine” value = “CDVWKWebViewEngine” />
-
The most actual information that I found is in https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html
Here say that WKWEBVIEW has a many of limitations, such as: "XmlHttpRequests don’t work, because of Cross-Origin Resource Sharing issue (CORS). "
It’s still not working?
-
Your server should handle the cors, not your frontend.