美文网首页
wxlog:Error:set token fail, errC

wxlog:Error:set token fail, errC

作者: 滴滴滴开门 | 来源:发表于2021-03-10 12:41 被阅读0次

    微信登录出现自检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];

    }

    相关文章

      网友评论

          本文标题:wxlog:Error:set token fail, errC

          本文链接:https://www.haomeiwen.com/subject/cmkwqltx.html