I have an app which shares a link. When someone taps on that link, it is opening Safari
mobile app, then automatically opens app (lets say : AppName) if is installed on his device.
let url = "appname://listener?mid=560aa7"
This is working perfect on iOS 8+, but on iOS 9 stopped to work.
Please note that I have FB added also, on URL Scheme
.
My URLType
is like this:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.appname.mobile</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb705.....</string>
<string>appname</string>
</array>
</dict>
</array>
And starting with iOS9, I added:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>appname</string>
</array>
And no success. Can anyone help me?
I tried with appname:
or appname://
and no success.
Also I aded new mothod for openURL
:
func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool