iOS Swift电子邮件深层链接 [英] iOS Swift Email Deep Linking

查看:127
本文介绍了iOS Swift电子邮件深层链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要让我的用户单击电子邮件URL才能打开我的应用程序。我有一些每日更新,已转发给我的用户。我在该电子邮件中有一些URL链接。我只需要让我的用户在单击这些电子邮件链接时打开应用程序。

I need to make my users to click on email URL to open my App. I having some daily updates that I have forward to my Users. I am having some URL links in that email. I just need to make my users to open app when they clicking those email links.

此处的电子邮件URL:
http://kavin.com/login?redirect_to=calendar?cal_navigation=2017-03-23

Email URL Here: http://kavin.com/login?redirect_to=calendar?cal_navigation=2017-03-23

推荐答案

使用回调方法处理推荐来源

use the call back method for 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
}

这篇关于iOS Swift电子邮件深层链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆