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后缀就能访问
网友评论