IOS Swift Email Deep Linking

I need my users to click on the email url to open their app. I have daily updates that I send to my users. I have url links in this email. I just need to get my users to open the app when they click on these email links.

The email address is here: http://kavin.com/login?redirect_to=calendar?cal_navigation=2017-03-23

+3


source to share


2 answers


use a callback method to handle the referral source



func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {

    print("source application:\(sourceApplication)")
    let value: String = url.absoluteString as String
    print("value :\(value)")
    print("scheme: \(url.scheme)")
    print("query: \(url.query)")

    return true
}

      

+2


source


Check this link for Universal Link support

https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html



When you support universal links, iOS users can use the link to your site and smoothly redirect to the installed app without going through Safari. If your app is not installed, clicking your site link opens your site in Safari.

0


source







All Articles