canOpenURL reveals whether an app is installed that handles universal deep links

Originator:raylillywhite
Number:rdar://25968989 Date Originated:27-Apr-2016
Status:Open Resolved:
Product:iOS SDK Product Version:9.3.1
Classification: Reproducible:
 
Summary:
If you attempt to call `[UIApplication canOpenURL:]` with a URL that is a universal deep link, it will return true if the app that handles the link is not installed, but will return false if the app is installed. This defeats the purpose of the restrictions that were placed on canOpenURL in iOS 9.

Steps to Reproduce:
1. Uninstall YouTube if it's installed
2. Call canOpenURL with "https://youtu.be/tk_gx9LNLlw", it will return true
3. Install YouTube
4. Call canOpenURL with "https://youtu.be/tk_gx9LNLlw", it will return false

Expected Results:
canOpenURL should return true for http/https links regardless of whether there is an app registered to handle them that is installed

Actual Results:
canOpenURL reveals that a user has installed the app that handles the universal link

Version:
iOS 9.3.1

Notes:


Configuration:
iPhone

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!