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

[iOS] Add support for Universal Links in cordova-ios

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-ios

      Description

      iOS 9 introduced support for Universal Links (https://developer.apple.com/library/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html) – essentially, the ability to launch an app directly given an http/https URL without requiring a custom URL scheme.

      It would be nice to have built-in support for this in the cordova-ios template, similar to how the existing openURL functionality works.

      I created a gist that has an implementation of the necessary delegate to do this, and it works using the existing CDVHandleOpenURL private plugin. In addition to the gist, a new entitlement needs to be added to the project (not sure if this is currently supported in a standard way), and a server-side configuration file must be uploaded to your domain.

      https://gist.github.com/dpolivy/b181d881c0137d98be57

      I've tested this briefly by modifying my project in Xcode, and it seems to work well!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dpolivy Dan Polivy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: