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

Whitelist "launch-external" setting does nothing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.8.0
    • 5.0.1
    • None
    • OSX 10.10
      Cordova 3.8.0
      iOS 8.3

    Description

      according to cordova docs, you should be able to specify in the config file which urls will open in an external browser by setting:

      <access origin="http://example.com/*" launch-external="yes" />

      However this does nothing.

      I've looked into the definition of shouldStartLoadWithRequest, and it does indeed have a line near the bottom that would load the url in the external system browser ([[UIApplication sharedApplication] openURL:url]), however it appears that it would be impossible for this line to be executed as long as the protocol is http or https.

      I'm not sure what the "correct" way is to address this, however it seems that old versions of the docs should be updated to reflect that launch-external does not do anything and maybe we could start paying attention to that config attribute going forward.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shull Steve Hull
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: