Become a MacRumors Supporter for $25/year with no ads, private forums, and more!
  • Did you order new AirTags? We've opened a dedicated AirTags forum.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
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 ?
 

*SteveB*

macrumors newbie
Jan 22, 2015
19
12
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.
 
Comment

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
is it possible to use deep linking in ios7 and ios8 devices ?
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.