你好,我们遇到了部分设备跳转微信后,无法分享的问题,具体情况是跳转后停留在验证页面,然后马上跳回我们自己的 App。
抓包的话,能看到系统下载我们的apple-app-site-association文件。
机型从 iPhone 6p 到 iPhone X 都遇到过。
微信版本:7.0.8
日志如下:
wxlog:send req[<SendMessageToWXReq: 0x280802540>], appID:wxe2b79b555bcfebcd, universalLink:https://aijiao100.com/,sdkVersion:1.8.6.1
wxlog:set property list
wxlog:Error:fail to load Keychain status:-25300, keyData null:1
wxlog:Error:token[(null)] is null
wxlog:launch app with ul only success
wxlog:launch app with universal link, ret:1
wxlog:req:<SendMessageToWXReq: 0x280802540>, cid:0fd2206bf81893243176627977bb426f80f83443
请检查以下Universal Links的回调方法是否有重载:
[3] 重写AppDelegate的continueUserActivity方法:
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArrayidUIUserActivityRest
oring>> * __nullable restorableObjects))restorationHandler {
return [WXApi handleOpenUniversalLink:userActivity delegate:self];
}
https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html