canOpenURL return NO for camelCase schema

Originator:shebuka
Number:rdar://26940525 Date Originated:22-Jun-2016 12:43 PM
Status:Duplicate/26799594 Resolved:27-Jun-2016 08:24 AM
Product:iOS SDK Product Version:iOS 10.0 (14A5261v)
Classification: Reproducible:Always
 
Summary:
We have two application: applicationA and applicationZ.
applicationA has a registered schema "applicationA" and is installed on device.
applicationZ has in it's .plist a whitelist entry in LSApplicationQueriesSchemes "applicationA".

Still when I do [[UIApplication sharedApplication] canOpenURL:url], with url = [NSURL URLWithString:@"applicationA://"], it return NO with this log in device console:

Jan  1 01:02:18 iPad-41-Air-v100 applicationZ S(UIKit)[374] <Notice>: -canOpenURL: failed for URL: "applicationA://" - error: "This app is not allowed to query for scheme applicationa"

As you see i'm querying "applicationA" and it's not allowing me to query "applicationa" (lowercase).

I've never seen nowhere in documentation the enforcing of lowercase in schema, is it now a case or is it a bug?

Steps to Reproduce:
1. first app register a schema in camelCase;
2. second app in it's .plist a whitelist entry in LSApplicationQueriesSchemes in camelCase;
3. second app try to query canOpenURL with url in camelCase that will result in NO even if it must be YES.

Expected Results:
Expecting canOpenURL to return YES.

Actual Results:
Result of canOpenURL return NO.

Version:
iOS 10.0 (14A5261v)

Configuration:
iPad Air 4.1

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!