Hello, I would like some suggestion, I try to open the browser from a page that is loaded from a WebView
/ UIWebView
, in an application iOS
or Android
for example:
window.open(
'http://www.stackoverflow',
'_blank'.
);
For security in the new OS this can be a security problem, but I would like a suggestion from the experts, any possible solution?
Some way to open a url from the Webview
, no matter if I require the use of any Framework
, the use of a Intent
or interface is ruled out.
I use
cordova
for development inandroid
and open windows with this code:But it seems that method only works on Android and not on iOS. For iOS there is a cordova plugin called ChildBrowser that works in a similar way although the notation is a bit different:
But again, this is using the cordova platform. I don't know how it would be integrated natively (the android method should work, but I'm not so sure about iOS).
I answer you for native iOS.
Treat your HTML links as you see fit, opening them from Javascript or with a hyperlink:
The only thing you need to do with your UIWebView is to intercept that link in the delegate and throw it in the native browser.