ios sdk 1.8.6.1 授权登录没有回调 onResp ?

发布于 8 年前作者 dhuang15002 次浏览最后编辑 8 年前来自 issues

IOS SDK 1.8.6.1 SendAuthReq 调用之后 如果是确定授权 onResp 会被正常吊起,正常回调 APP。 


问题 1.

如果是取消(拒绝授权)  onResp 没有被 调用?并且就停留在微信页面,不回调 APP


问题 2.

app 被回调走的 openurl 方法不是 link 方法 (link 已经配置)


问题 3  请确认吊起的页面是否正确

问题 4   apple-app-site-association文件是否正确?

{

    “applinks”: {

        “apps”: [],

        “details”: [

            {

                “appID”: “******.com.goockr.********”,(可以确保是 teamid.bundleid)

                “paths”: [ “*” ]

            }

        ]

    }

}


环境

微信 7.0.8     ios 13.1.1

微信 appid  wxf54b36ad0a35ce54

打印日志

2019-10-15 14:50:18.542662+0800 GoockrCharging[509:45639] wxlog : wxlog:send req[<SendAuthReq: 0x28255d890>], appID:wxf54b36ad0a35ce54, universalLink:https://chhp.goockr.com/, sdkVersion:1.8.6.1

2019-10-15 14:50:18.563918+0800 GoockrCharging[509:45639] wxlog : wxlog:set property list

2019-10-15 14:50:18.596720+0800 GoockrCharging[509:45639] wxlog : wxlog:Error:fail to load Keychain status:-25300, keyData null:1

2019-10-15 14:50:18.596814+0800 GoockrCharging[509:45639] wxlog : wxlog:Error:token[(null)] is null

2019-10-15 14:50:18.629768+0800 GoockrCharging[509:45639] wxlog : wxlog:launch app with ul only success

2019-10-15 14:50:18.629883+0800 GoockrCharging[509:45639] wxlog : wxlog:launch app with universal link, ret:1

2019-10-15 14:50:18.629944+0800 GoockrCharging[509:45639] wxlog : wxlog:req:<SendAuthReq: 0x28255d890>, cid:c3dd703a982028a5a3115d55e707118bbc9d2522

2019-10-15 14:50:18.796704+0800 GoockrCharging[509:46989] PBItemCollectionServicer connection disconnected.

2019-10-15 14:50:19.463485+0800 GoockrCharging[509:45639] Can't end BackgroundTask: no background task exists with identifier 6 (0x6), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.


以下页面是授权登录吊起的页面  是否正确?


5 回复
xiaxiulan
xiaxiulan1 楼6 年前

同样遇到这个问题,onResq不回调环境:swift5

设备: ios12.4.1 ipad    微信:7.0.8

微信日志显示: wxlog:Error:fail to load Keychain status:-25300, keyData null:1

有人解决了嘛?或者说 如何调试定位真正的问题啊?  万分感谢 !

dyao
dyao2 楼6 年前

 --- add log 10000

2019-11-28 15:05:54.114394+0800 -- success send log (

    10000

)

Can't end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

微信分享之后点击返回App无反应

xxie
xxie3 楼6 年前

打印的日志,能唤起微信登录,点击"确定"后,不走onResp的回调方法

bcui
bcui4 楼6 年前

首先出现该确认框是由于微信使用universal link返回app失败了,因此微信出二次确认授权,降级使用scheme拉起app.

问题1:  点击取消没有返回app是微信app的问题,我们会在后续版本修复

问题2:正常表现. 因为使用的是scheme协议

问题3:   基于universal link无法拉起app的情况,表现符合预期

问题4:  请尝试使用你们的universal link+path+任意字符串,在safari发起请求看是否能识别打开app, 以确认universal link配置ok. 详见文档https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html

gangfang
gangfang5 楼6 年前

iOS13 升级到微信支付iOS 1.8.6.1 SDK 微信app版本为7.0.7


continueUserActivity 不走?请问是什么情况?有什么方法解决


onResp 不回调请问是什么问题?