universal link在浏览器内可以打开,可以跳转应用,微信开放平台也universal link:"https://xxx.hgold.cn/"
代码中微信在application中注册了
WXApi.registerApp("wxxxxxxx", universalLink: "https://xxx.hgold.cn/");
测试的时候,首次安装是可以出现app与微信的交互,但是分享朋友圈或好友,还是会出现应用未认证。注视掉下面代码,首次安装应用也不显示与微信的交互
WXApi.checkUniversalLinkReady { (step, result) in
print("1----->%@","2----->%@","3-------->%@","4-------->%@",step,result.success,result.errorInfo,result.suggestion)
}
回调也写了
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
return WXApi.handleOpenUniversalLink(userActivity, delegate: self)
}