问题:点击QQ分享跳转到QQ之后,提示安全校验中,即将跳回完XXX成验证,之后直接跳回了app,没有分享成功,只有iOS15有问题,iOS14可以正常分享
解决办法:
添加如下代码:
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler { if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]){ NSURL *url = userActivity.webpageURL; [QQApiInterface handleOpenUniversallink:url delegate:self]; if (url && [TencentOAuth CanHandleUniversalLink:url]) { return [TencentOAuth HandleUniversalLink:url]; } } return [QQApiInterface handleOpenUniversallink:url delegate:self];; }