- iOS分享,跳转到微信后,显示正在连接,就跳回APP了,Universal Link没生效?
部分用户包括自己的几个测试机都无法微信分享了,跳转过去就是正在连接,然后跳回来。调试了很久,发现,Universal Link在Safari打开这部分手机顶部都没有跳转到APP按钮(其他手机正常)。最后偶然重启手机后发现,只要重启手机,就恢复正常了。Safari能通过Universal Link跳转APP了,APP的分享也正常了。这是有缓存?但是我的好几个手机都从来没有安装过该APP,第一次安装的,就是这样的状态。很懵逼。
2023-01-29 - 部分用户分享内容跳转至微信之后出现 "正在连接" 字样后又跳回了 iOS APP,如何解决?
当前 iOS APP 接入的是 2.0.2 的 xcframework 形式的 SDK 由于只是部分用户出现没有办法分享的问题,而且根据日志回捞的结果来说 sdk 的 WXApi 的 send 的 callback 的结果是 success,但跳转到微信后整个分享的流程却没有走下去,以下是部分出问题的用户的分享日志,希望得到相关支持. [WeChatIdentityHandler.mm]-[WeChatIdentityHandler setContextReq:contextId:]WXLog:req:<SendMessageToWXReq: 0x283f75200>, cid:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [WXApi.m]+[WXApi handleOpenURL:delegate:]WXLog:Error:handle open url fail, url is nil [WXApi.m]+[WXApi launchApplicationWithUrl:completion:]_block_invokeWXLog:launch app with ul only success [WXApi.m]+[WXApi launchWechatWithExtralUrl:forceScheme:contextId:paramsDataStr:unnecessaryDataErased:completion:]_block_invokeWXLog:launch app with universal link, ret:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:Error:fail to load Keychain status:-25300, keyData null:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:token[(null)] is null [WeChatShareUrlCheckHandler.m]+[WeChatShareUrlCheckHandler startCheckWithShareUrlCheckTask:]WXLog:[checkUrl] not in list, try request async [WeChatShareUrlCheckHandler.m]-[WeChatShareUrlCheckTask continueShareTask]WXLog:continue share, appid=xxxxxxxxxxx, url=https://m.example.com/agent/?agentId=71539264797290496 [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:gen url with full params ok [WeChatShareUrlCheckHandler.m]-[WechatShareUrlCheckConfigRecord initWithParamDictionary:]WXLog:[checkUrl] init record with dict: { [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req[<SendMessageToWXReq: 0x283f75200>], appID:xxxxxxxxxxx, universalLink:https://example.com/, sdkVersion:2.0.2 [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req transformToUrl data len:13564, erased:0 [WeChatIdentityHandler.mm]-[WeChatIdentityHandler setContextReq:contextId:]WXLog:req:<SendMessageToWXReq: 0x283f7f800>, cid:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [WXApi.m]+[WXApi handleOpenURL:delegate:]WXLog:Error:handle open url fail, url is nil [WXApi.m]+[WXApi launchApplicationWithUrl:completion:]_block_invokeWXLog:launch app with ul only success [WXApi.m]+[WXApi launchWechatWithExtralUrl:forceScheme:contextId:paramsDataStr:unnecessaryDataErased:completion:]_block_invokeWXLog:launch app with universal link, ret:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:Error:fail to load Keychain status:-25300, keyData null:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:token[(null)] is null [WeChatShareUrlCheckHandler.m]+[WeChatShareUrlCheckHandler startCheckWithShareUrlCheckTask:]WXLog:[checkUrl] not in list, try request async [WeChatShareUrlCheckHandler.m]-[WeChatShareUrlCheckTask continueShareTask]WXLog:continue share, appid=xxxxxxxxxxx, url=https://m.example.com/share-url-sample [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:gen url with full params ok [WeChatShareUrlCheckHandler.m]-[WechatShareUrlCheckConfigRecord initWithParamDictionary:]WXLog:[checkUrl] init record with dict: { [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req[<SendMessageToWXReq: 0x283f7f800>], appID:xxxxxxxxxxx, universalLink:https://example.com/, sdkVersion:2.0.2 [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req transformToUrl data len:13564, erased:0 [WXApi.m]+[WXApi handleOpenURL:delegate:]WXLog:Error:handle open url fail, url is nil [WXApi.m]+[WXApi handleOpenURL:delegate:]WXLog:Error:handle open url fail, url is nil [WeChatShareUrlCheckHandler.m]-[WechatShareUrlCheckConfigRecord initWithParamDictionary:]WXLog:[checkUrl] init record with dict: { [WeChatShareUrlCheckHandler.m]-[WeChatShareUrlCheckTask isRecordValid:]WXLog:[checkUrl] record valid [WeChatIdentityHandler.mm]-[WeChatIdentityHandler setContextReq:contextId:]WXLog:req:<SendMessageToWXReq: 0x283fa7a80>, cid:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [WeChatShareUrlCheckHandler.m]+[WeChatShareUrlCheckHandler requestURLRuleWithTask:isAsync:]_block_invoke_2WXLog:[checkUrl] get dict from resp, dict: { [WXApi.m]+[WXApi launchApplicationWithUrl:completion:]_block_invokeWXLog:launch app with ul only success [WXApi.m]+[WXApi launchWechatWithExtralUrl:forceScheme:contextId:paramsDataStr:unnecessaryDataErased:completion:]_block_invokeWXLog:launch app with universal link, ret:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:Error:fail to load Keychain status:-25300, keyData null:1 [WeChatIdentityHandler.mm]+[WeChatIdentityHandler loadTokenFromKeychain]WXLog:token[(null)] is null [WeChatShareUrlCheckHandler.m]+[WeChatShareUrlCheckHandler startCheckWithShareUrlCheckTask:]WXLog:[checkUrl]no local data, try request async [WeChatShareUrlCheckHandler.m]-[WeChatShareUrlCheckTask continueShareTask]WXLog:continue share, appid=xxxxxxxxxxx, url=https://m.example.com/call-app/ [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req transformToUrl data len:7460, erased:0 [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:gen url with full params ok [WXApi.m]+[WXApi registerApp:universalLink:]WXLog:using sdk:xcframework-iphone-arm64 [WXApi.m]+[WXApi sendReq:isAutoResend:forceScheme:completion:]WXLog:send req[<SendMessageToWXReq: 0x283fa7a80>], appID:xxxxxxxxxxx, universalLink:https://example.com/, sdkVersion:2.0.2
04-22