Bonnke
Bonnke

Reputation: 896

Opening installed app using URL Scheme is not working

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

Upvotes: 1

Views: 1065

Answers (1)

Beny Boariu
Beny Boariu

Reputation: 736

I don't see a problem on your side, seems like everything is set correctly. However, regarding iOS 9, other users reported this problem with iframe. Make sure the things are setup correctly on server side. Check these 2 links:

iOS 9 iFrame Problem 1

iOS 9 iFrame Problem 2

Upvotes: 1

Related Questions