Reputation: 3
I have a built application (Swift and iOS 9.0) and I want to post links from the app web page on social media apps such as Facebook or Twitter, is it possible to launch the app(if installed) and handle the url in my app delegate when the user taps on those links? I have read about universal links but I was wondering if there is anything else to solve it... Thanks.
Upvotes: 0
Views: 2085
Reputation: 2828
It completely depends on the app. The opening of your app from a Universal Link in another app is completely up to the control of the third party app. For example, Facebook opens Universal Links in a WebView instead of the app and you have to force open your app using Facebook App links. Twitter uses a system they call App cards.
To ensure that your app opens in every case possible, you should be using Branch. This chart lays out when Branch links open the app and when they open the fallback website.
Upvotes: 1
Reputation: 22701
Yes. You can use custom URL schemes in your app.
See: Apple Documentation (scroll down to "Using URL Schemes to Communicate with Apps")
In summary, they say:
A URL scheme lets you communicate with other apps through a protocol that you define. To communicate with an app that implements such a scheme, you must create an appropriately formatted URL and ask the system to open it. To implement support for a custom scheme, you must declare support for the scheme and handle incoming URLs that use the scheme.
Upvotes: 0