集成新浪微博第三方登录Block没有收到回调
.universalLinkole+wO%7B_1649745167095.png)

调用新浪微博
[[UMSocialManager defaultManager] getUserInfoWithPlatform:UMSocialPlatformType_Sina currentViewController:nil completion:^(id result, NSError *error) {
if (error) {
} else {
UMSocialUserInfoResponse *resp = result;
// 授权信息
NSLog(@"Sina____________uid: %@", resp.uid);
NSLog(@"Sina____________accessToken: %@", resp.accessToken);
NSLog(@"Sina____________refreshToken: %@", resp.refreshToken);
NSLog(@"Sina____________expiration: %@", resp.expiration);
NSLog(@"Sina____________unionid: %@", resp.unionId);
// 用户信息
NSLog(@"Sina____________name: %@", resp.name);
NSLog(@"Sina____________iconurl: %@", resp.iconurl);
NSLog(@"Sina____________gender: %@", resp.unionGender);
// 第三方平台SDK源数据
NSLog(@"Sina____________originalResponse: %@", resp.originalResponse);
[weakSelf thirdLoginWithThirdKey:resp.unionId ForLoginType:Login_Sina data:resp];
}
}];
回调结果
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options {
}
明明配置了universalLink,但是也不会正常走
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler {
}
验证过程,
在safari浏览器输入配置的“https://***********/app/sina/”,可以正常打开APP。
但是配置了,结果调用新浪微博还是不会走Block,导致无法获取信息。