1

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
Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Bonnke
  • 896
  • 1
  • 12
  • 24
  • I am succesful only if typing just the URL scheme "foo.bar.app://". Once I try to include anything behind the slashes (//), Safari tells that address of the page is invalid. – lef Jan 26 '16 at 10:55

1 Answers1

1

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

Community
  • 1
  • 1
Beny Boariu
  • 736
  • 2
  • 11
  • 26
  • How should this relate with a server? Did you noticed we are using custom URL schemes, e.g. foo.bar.app://open meaning there might be domain that does not exist at all? So, there's no server that could be tweaked in any way! – lef Jan 26 '16 at 10:51