执行校验的时候:
[WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult* result) {
NSLog(@"%@, %u, %@, %@", @(step), result.success, result.errorInfo, result.suggestion);
}];
日志如下:
wxlog:set property list
wxlog:launch app with ul only success
wxlog:Successfully starting WeChat with the universal link.
wxlog:Error:universal link check enable but contextId is error., contextID:(null)
wxlog:Error:set token fail, errCode:3, errLog:app no context, req[(null)], contextID[(null)]
wxlog:Error:check or record token fail, error:Error Domain=WXOpenSDKRefreshTokenError Code=3 "app no context, req[(null)], contextID[(null)]" UserInfo={NSLocalizedDescription=app no context, req[(null)], contextID[(null)]}
wxlog:delay launch wx with refresh token fail
wxlog:Error:fail to load Keychain status:-25300, keyData null:1
wxlog:token[(null)] is null
wxlog:set property list
wxlog:launch app with ul only success
wxlog:openURL success:1, url:https://help.wechat.com/app/wxaee9614bfa5b0da1/refreshTokenFail/?bundleID=com.yum.enterprise.portal&isShare=0&errCode=3&errMsg=app%20no%20context%2C%20req%5B%28null%29%5D%2C%20contextID%5B%28null%29%5D&wechat_app_bundleId=com.yum.enterprise.portal
参考下帖子
https://developers.weixin.qq.com/community/develop/doc/0004289aef0c50b4c86abc1295b800?_at=1648540201242