美文网首页
微信分享 universalLink配置

微信分享 universalLink配置

作者: Joymerry | 来源:发表于2023-01-13 10:44 被阅读0次
UMSocialGlobal.shareInstance()?.isUsingHttpsWhenShareContent = false
UMSocialGlobal.shareInstance()?.universalLinkDic = [UMSocialPlatformType.wechatSession.rawValue: "https://h5.renminyixue.com/h5/", UMSocialPlatformType.QQ.rawValue: "https://h5.renminyixue.com/qq_conn/1106246205"]

创建apple-app-site-association的json文件,内容如下:

{
    "applinks": {
        "apps": [],
        "details": [{
            "appID": "Q226EAUD33.zhengren.PopularMedicine",
            "paths": ["/h5/*","/qq_conn/1106246205/*"]
            }]
        }
}

如果universal link设置为:https://h5.renminyixue.com/ 即官网地址后加/的话,apple-app-site-association文件中paths配置为:["*"]即可

创建apple-app-site-association文件记得不要有json后缀,且放在官网根母录下,下载地址https://h5.renminyixue.com/apple-app-site-association,也需要有没有json后缀就能访问

相关文章

网友评论

      本文标题:微信分享 universalLink配置

      本文链接:https://www.haomeiwen.com/subject/afvlartx.html