canOpenUrl returns false for Youtube http(s) links

Originator:fabian.ehrentraud
Number:rdar://27273800 Date Originated:2016-07-11
Status:Open Resolved:
Product:iOS Product Version:9.3.2
Classification:Serious Bug Reproducible:Always
 
Summary:
canOpenUrl returns false for Youtube http(s) links

Steps to Reproduce:
* Check out the example project https://github.com/fabb/CanOpenUrlBug
* Install the Youtube app on a physical device
* Start the example project on the device
* Click the button which calls canOpenUrl on https://www.youtube.com/watch?v=an3XVTc1KsI

Expected Results:
* canOpenUrl should return true, as the universal link can be opened by the Youtube app


Actual Results:
* canOpenUrl returns false


Version:
iOS 9.3.2

Notes:
* Actually canOpenUrl should *always* return true for http(s) urls, as such links can *always* be opened by Safari
* Interestingly when calling openUrl with the url from the example project, the url *does* open in the Youtube app, and the method call returns true

Comments

Was resolved in iOS 10 beta 3. Warning: not resolved when compiling with iOS 10 SDK on a device with an older iOS version.

By fabian.ehrentraud at July 27, 2016, 4:12 p.m. (reply...)

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!