The following URL opens on iOS 8.3 and lower, but it does not work and iOS 9
let instagramURL = NSURL(string: \"instagram://app\")
Why won\
When I tried to call Facebook from my own app today, I found that there is no a LSApplicationQueriesSchemes
key I can add to the Info.plist
(Xcode Version 8.2.1 (8C1002)). I opened the Info.plist
with Sublime Text and manually added it into the file, then it worked. Just to let you know that if you cannot find the key, simply add it yourself.
Well you can open an app by calling openURL:
or openURL:options:completionHandler:
(iOS 10 onwards) directly without making the conditional check canOpenURL:
.
Please read the discussion section in Apple doc for canOpenURL: method which says:
the openURL: method is not constrained by the
LSApplicationQueriesSchemes
requirement.