App Linking

Discussion in 'iOS Programming' started by erdinc27, Apr 27, 2016.

  1. erdinc27 macrumors regular

    Joined:
    Jul 20, 2011
    #1
    I want to open my application when a link is tapped in Facebook or Twitter. The link will be something like this "http://www.mywebsite.com/ios_9_release_date"

    I arranged info.plist in my application URLTypes and URLSchemes like mywebsite
    Here how it looks.

    But when i tap the shared link in Facebook then Safari is opened not my application. How can i make to open my application when the link is tapped ?
     
  2. *SteveB* macrumors newbie

    Joined:
    Jan 22, 2015
    #2
    You need to host a file on your website that contains your app's bundle id, along with the subdomains that it is allowed to intercept. I assume that this is to ensure that you own both the website and the app, to stop apps, for instance, intercepting any link to facebook.com

    There is a good explanation here: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9

    One other thing to be aware of that tripped me up. When your app is first installed, iOS will go to your site to download the hosted file (the one that contains your app's bundle id). This can only be done using https though, http will fail. This happens even if you have specified that you allow that domain as http in your info.plist, because it isn't your app that is making that request, it is iOS. So you will need to get an SSL certificate if you don't already have one.
     
  3. erdinc27 thread starter macrumors regular

    Joined:
    Jul 20, 2011
    #3
    is it possible to use deep linking in ios7 and ios8 devices ?
     

Share This Page