No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    openURL does not work in Cordova

    Help
    2
    5
    2164
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ssuess
      ssuess last edited by

      openURL works fine in desktop browsers, but when built with Cordova will not open an external browser (at least on iOS). The link does nothing at all.

      1 Reply Last reply Reply Quote 0
      • ssuess
        ssuess last edited by

        In case it helps anyone else, the solution was to create and then call the following method:

        launch (url) {
              window.open(url, '_system')
            },
        
        1 Reply Last reply Reply Quote 0
        • S
          smakinson last edited by

          Does that actually open safari for you? openURL and the window.open above both seem to load the url into the app.

          1 Reply Last reply Reply Quote 0
          • S
            smakinson last edited by

            Here is what I had to do:

            Install the Inappbrowser plugin:
            http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/index.html

            Use:
            window.cordova.InAppBrowser.open(url, ‘_system’)

            1 Reply Last reply Reply Quote 0
            • ssuess
              ssuess last edited by

              I also have that plugin installed yes. Once that is present, my method above works.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post