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

InAppBrowser iOS calls handleOpenURL in same app for _system URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • None
    • None

    Description

      The change to fix CB-11178 has caused some undesirable behavior with InAppBrowser on iOS. Now, whenever you try to open a URL in the system browser, by calling `cordova.InAppBrowser.open(url, "system")`, it opens the system browser AND calls `handleOpenURL` _in your app with the same URL.

      In my case, my app is a URL handler for a corresponding web domain (app links). I am trying to open a page on this web domain in the system browser from within my app. If my app's handleOpenURL is called with a URL also on the domain, then my handler thinks it is handling an app link and it causes the app to navigate to another URL, which in this case is not desired or expected.

      Prior to the fix for CB-11178, this worked perfectly. Is there any other way to address the fix for CB-11178 without inheriting this incorrect and undesirable behavior?

      jcesarmobile: FYI as you committed the fix in question.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dpolivy Dan Polivy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: