You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/06 09:15:43 UTC

[GitHub] [cordova-plugin-inappbrowser] mosabab commented on issue #390: Links with target _blank are not working on iOS inside inAppBrowser when wkwebview is enabled

mosabab commented on issue #390:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/390#issuecomment-640017799


   > @consciouscoder @arielnmagno
   > 
   > Please use the latest version of this plugin or the master version.
   > 
   > As the documentation for this plugin:
   > 
   > target: The target in which to load the URL, an optional parameter that defaults to _self. (String)
   > 
   > _self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
   > _blank: Opens in the InAppBrowser.
   > _system: Opens in the system's web browser.
   > 
   > So,
   > 
   > * If you want to open the link in inapapbrowser plugin you should use _blank.
   > 
   > Example:
   > `var ref = cordova.InAppBrowser.open('http://apache.org', '_blank', 'location=yes');`
   > 
   > * if you want to open the link in mobile device web browsers you should use _system
   > 
   > Example:
   > `var ref = cordova.InAppBrowser.open('http://apache.org', '_system', 'location=yes');`
   
   Additional inofrmation:
   
   (NOTE: wkwebview has been integrated to the plugin it self, there is no need to use 'wkwebview=yes' any more.)
   
   So if you used : `wkwebview=yes` in the options, please remove it, and also there is no need for the `cordova-plugin-wkwebview-engine` because it is already integrated to the cordova-ios.
   
   Regards


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org