微信登录出现自检wxlog:Error:set token fail, errCode:4, errLog:wx token[] or contextId[(null)报错有两种方法:
第一种是接入原生的微信登录解决办法
- (BOOL)application:(UIApplication*)applicationcontinueUserActivity:(NSUserActivity*)userActivityrestorationHandler:(void(^)(NSArray> *_Nullable))restorationHandler {
return [WXApi handleOpenUniversalLink:userActivity delegate:self];
}
第二种接入友盟微信登录解决办法
-(BOOL)application:(UIApplication*)applicationcontinueUserActivity:(NSUserActivity*)userActivityrestorationHandler:(void(^)(NSArray> *__nullablerestorableObjects))restorationHandler{
return [[UMSocialManager defaultManager] handleUniversalLink:userActivity options:nil];
}
网友评论