Skip to content

iOS 9 privacy changes #25

Description

@jengelsma

As of iOS9 Apple has changed the behavior of UIApplication.canOpenURL for privacy reasons. The method will now return false on any URL schemes that are not whitelisted in the app's Info.plist. After a bit of debugging, we've determined that this impacts some non-custom native (e.g. http:) URLs as well. Native YouTube URLs are one good example. In order to get any such URLs to work ok with this component you need to explicitly whitelist the scheme (or http url). For YouTube we had to add the following to our info.plist:

 <key>LSApplicationQueriesSchemes</key>
 <array>
  <string>youtube</string>
 </array>

It might be good to call this out in the README, as its sure to confound folks. I'm guessing this will only impact native urls of "special apps" such as YouTube where iOS automatically will attempt to run the app (if available) instead of Safari, even when a native http url is presented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions