调用checkUniversalLinkReady后会自动调起微信授权界面影响体验,代码如下
#if DEBUG
[WXApi startLogByLevel:WXLogLevelDetail logBlock:^(NSString * _Nonnull log) {
NSLog(@"先走WXApi checkUniversalLinkReady--再走WXApilog----->%@",log);
}];
#endif
dispatch_async(dispatch_get_main_queue(), ^{
BOOL wx = [WXApi registerApp:kWechatAPPKey universalLink:kWechatUniversalLinks];
NSLog(@"wx 注册成功?:%d",wx);
if(wx)
{
if ([@available](/user/available)(iOS 12.0, *)) {
//
// [WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult* result) {
// NSLog(@"%@, %u, errorInfo: %@, suggestion: %@", @(step), result.success, result.errorInfo, result.suggestion);
// }];
}
}
});