Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-94

OpenAllWhitelistURLsInWebView setting still problematic

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • None
    • None
    • cordova-ios
    • None

    Description

      The good news: OpenThisWhitelistURLsInWebView works perfectly.
      The not so good news: Once that boolean is set to yes, there is no way to force a link to jump out and open in a browser. It's all or nothing. How, in the case of an app requiring OpenAllWhitelistURLsInWebView = Yes for some pages, can you also force a particular link to open outside of the in-app webview?

      In practice, it would be nice (and fairly universally useful) to be able to specify whether a link's behavior does or does not open in webview on an individual basis. For example in the same app you have some embed or iframe links that should be opened in the app's webview, and, other links on a FB or twitter badge to jump out to follow or to "like" a page, or "if you like this app, click here to jump to our website to find out more" types of links.

      Maybe it is as simple as using target="_blank" inside an < a> tag to signify jumping out of the app and opening in a browser?

      or maybe this scheme as an expected behavior ...

      If the OpenAllWhitelistURLsInWevView boolean is set to YES,
      then,
      any external links in the whitelist (ExternalHosts array) will open up in WebView.
      Inversely,
      any external links NOT on the whitelist will open externally.

      Thoughts?

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment