- UniversalLink 更换域名后无法使用微信登录和微信分享?
UniversalLink 更换域名后(之前是app.shlingzhang.com,更新后为web.shlingzhang.com),一直显示“由于应用universal Link校验不通过”导致无法分享和登录,是怎么回事?使用checkUniversalLinkReady检查只成功了5步,之前成功了7步。日志里面是显示还是老的配置,可app中都已配置为新的域名了,而且微信开发社区配置也已同步为新域名且显示状态为通过。奇葩的问题,总是层出不穷 [图片][图片]
2022-02-25 - app分享到微信好友、朋友圈,拉起微信后直接返回到原应用了,没有显示好友列表
//微信验证注册 let _result = WXApi.registerApp(K_APP_WECHART_APP_ID,universalLink:K_APP_UNIVERSAL_LINK) print("WXApi.registerApp:\(_result ? "OK":"Fail")" func application(_ application: UIApplication, handleOpen url: URL) -> Bool { let result = UMSocialManager.default().handleOpen(url) if(!result){ // 其他如支付等SDK的回调 if url.absoluteString.contains(K_APP_QQ_APP_ID) { return TencentOAuth.handleOpen(url) } else if url.absoluteString.contains(K_APP_WECHART_APP_ID){ return WXApi.handleOpen(url,delegate:self) } } return result } func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { //6.3的新的API调用,是为了兼容国外平台(例如:新版facebookSDK,VK等)的调用[如果用6.2的api调用会没有回调],对国内平台没有影响 let result = UMSocialManager.default().handleOpen(url,sourceApplication:sourceApplication,annotation:annotation) if(!result) { // 其他如支付等SDK的回调 if url.absoluteString.contains(K_APP_QQ_APP_ID) { return TencentOAuth.handleOpen(url) } else if url.absoluteString.contains(K_APP_WECHART_APP_ID){ return WXApi.handleOpen(url,delegate:self) } } return result } func application(_ application:UIApplication,continueUserActivity userActivity:NSUserActivity, restorationHandler:(_ restorableObjects:Any)->Void) -> Bool { let result = UMSocialManager.default().handleUniversalLink(userActivity,options:nil) if(!result) { guard let _strUrl = userActivity.webpageURL?.absoluteString else { return true } //QQ if _strUrl.contains(K_APP_QQ_APP_ID),let _url = userActivity.webpageURL { return TencentOAuth.handleUniversalLink(_url) } //微信 else if _strUrl.contains(K_APP_WECHART_APP_ID) { return WXApi.handleOpenUniversalLink(userActivity,delegate:nil) } } return result }
2021-04-27