iOS13.x中 Universal Link的几个勘误

关于iOS系统中, 从HTML5拉起 app的机制,通常都会用到Univeral link的几个重要勘误如下

 

Universal link支持二级域名,乃至三级域名,已经过验证。网传的不支持三级域名并不正确。apple的官方文档中,也只是提到在app的associate domains设置的域名列表中可以使用通配符*,并且遵循最长匹配规则进行匹配。官方原文如下

To match all subdomains of an associated domain, you can specify a wildcard by prefixing *. before the beginning of a specific domain (the period is required). Domain matching is based on the longest substring in the applinks entries. For example, if you specify the entries applinks:*.mywebsite.com and applinks:*.users.mywebsite.com, matching for the domain emily.users.mywebsite.com is performed against the longer *.users.mywebsite.com entry. Note that an entry for *.mywebsite.com does not match mywebsite.com because of the period after the asterisk. To enable matching for both *.mywebsite.com and mywebsite.com, you need to provide a separate applinks entry for each.

  1.      associate domains 最多支持20-30个域名。
  2.      appdelegate.m 必须实现application:continueUserActivity:restorationHandler:这个方法
  3.   如果使用三级域名,二级域名和一级域名必须也同时支持ssl证书。
  4.   修改apple-app-site-association文件并上传后,建议重新安装app,安装时必须保证互联网畅通,不能通过诸如charles这样的代理下载安装。否则不能保证,这个文件生效,不能保证拉起能生效。

  

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值