[图片]
开发者工具无法登录?[图片] 登录不上?
01-04你好,问题解决了吗?我也遇到 不回调的现象了
Swift接入微信第三方登录问题?登录后第一次操作不回调 重启后,第二次操作才回调,什么原因? 操作步骤如下: step1: 第一次安装App,点击微信登录,执行: func authorize() { let request = SendAuthReq() request.scope = WE_CHAT_SCOPE request.state = WE_CHAT_STATE WXApi.send(request) { (flag) in print("-----发送微信请求flag=\(flag)-----") } print("-----WeChatManager.authorize-----") } 然后控制台打印后,不会回调下面任何一个方法 func application(_ application: UIApplication, handleOpen url: URL) -> Bool { return self.weChatManager.handleOpen(url) } func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { return self.weChatManager.handleOpen(url) } func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { return self.weChatManager.handleOpen(url) } func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { return self.weChatManager.handleOpernUniversalLink(userActivity) } [图片] step2: 后台杀死APP,再次打开后,点击微信登录,回调就能成功 [图片]
2021-04-02