收藏
回答

接入微信iOS SDK微信登录打不开确认页面.跳转到微信又立马调回来.自检未完成,求教?

环境:

xcode:11.5

iphone版本:13.5

微信版本:7.0.12

SDK版本;1.8.7.1

按照https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html一步步接入.

调用逻辑如下:

自检日志错误如下:

(其中https://www.xxxx.com/xxxxx/是经过处理后的url)

目前:

1.通过Safara确认配置的Universal Link正常.

2.调用逻辑如下

2.1 调用 [WXApi handleOpenURL:url delegate:self]发生在

 AppDelegate

 - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 

 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation 

 SceneDelegate

 - (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts

2.2 调用[WXApi handleOpenUniversalLink:userActivity delegate:self]发生在

 AppDelegate

 - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler 

 SceneDelegate

 - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler


已经按照:https://developers.weixin.qq.com/community/develop/doc/000880a051015855aea992f995bc09

自查,没发现任何问题.

求官方指导

最后一次编辑于  2020-06-11
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签