收藏
回答

小程序返回app,收不到回调,不走 onResp(_ resp: BaseResp)方法?

appdelegate中这三个方法也都设置了,但是从小程序返回没有走 continue userActivit, checkUniversalLinkReady所有步骤也都走成功了

func application(_ application: UIApplication, handleOpen url: URL) -> Bool {

        return WXApi.handleOpen(url, delegate: self)

    }


    func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {

        return WXApi.handleOpen(url, delegate: self)

    }


    


    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {

  return WXApi.handleOpenUniversalLink(userActivity, delegate: self)

    }

以下是输出日志

WXULCheckStep(rawValue: 0), result = WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ].

WXULCheckStep(rawValue: 1), result = WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ].

WXULCheckStep(rawValue: 2), result = WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ].

wxchatLog: [AppCommunicate.m]+[AppCommunicate setPropertyList:forAppID:canReadPasteBoard:]WXLog:set property list.

WXULCheckStep(rawValue: 3), result = WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ].

wxchatLog: [WXApi.m]+[WXApi launchApplicationWithUrl:completion:]_block_invokeWXLog:launch app with ul only success.

WXULCheckStep(rawValue: 4), result = WXCheckULStepResult[success: 1, errorInfo: check passed, suggestion: ].

wxchatLog: [WXApi.m]+[WXApi checkUniversalLinkReady:]_block_invokeWXLog:Successfully starting WeChat with the universal link..

WXULCheckStep(rawValue: 5), result = WXCheckULStepResult[success: 1, errorInfo: Universal Link check passed. The application is launched by WeChat via Universal Link, suggestion: ].

wxchatLog: [WXApi.m]+[WXApi checkUniversalLinkCallback:step:success:errorInfo:suggestion:]WXLog:WXCheckULStepResult[success: 1, errorInfo: Universal Link check passed. The application is launched by WeChat via Universal Link, suggestion: ].

WXULCheckStep(rawValue: 6), result = WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ].

wxchatLog: [WXApi.m]+[WXApi checkUniversalLinkCallback:step:success:errorInfo:suggestion:]WXLog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ].




    


回答关注问题邀请回答
收藏

1 个回答

  • 吃🍉啊
    吃🍉啊
    03-07

    有谁碰到过同样的问题么? 怎么解决的

    03-07
    有用
    回复 1
    • 。zZ
      。zZ
      03-25
      你好,遇到同样的问题,解决了吗?
      03-25
      回复
登录 后发表内容