Q:Universal Link校验不通过,无法调起微信支付?
A:请开发者在调用register接口前,打开WXApi.h的日志接口,观察报错日志和原因:
+ (voidstartLogByLevel:(WXLogLevel)levellogBlock:(WXLogBolock)logBlock
Q:接入新SDK,跳到微信后再回跳App,流程就中止?
A:1. 首先,微信唤起App,App一定会收到系统回调。请确认系统回调是Scheme回调还是Universal Links回调。
2. 如果是Scheme回调,请检查是否走了UISceneDelegate(XCode11构建的项目),或是UIApplicationDelegate。它们的回调方法分别是
- (void)scene:(UIScene *)scene openURLContexts:(NSSetUIOpenURLContext *> *)URLContexts;
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionaryUIApplicationOpenURLOptionsKey, id> *)options;
3. 如果是Universal Links回调,同样也检查是否走了UISceneDelegate(XCode11构建的项目),或是UIApplicationDelegate。它们的回调方法分别是
- (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArrayidUIUserActivityRest
oring>> * __nullable restorableObjects))restorationHandler
4. 因为考虑兼容旧版本微信,因此无论Scheme或Universal Links回调都必须处理。 在重写回调方法后,需要分别调用WXApi的handleOpenUrl和handleOpenUniversalLink方法
示例:
- (voidscene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity {
return [WXApi handleOpenUniversalLink:userActivity delegate:self
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:void(^)(NSArrayidUIUserActivityRest
oring>> * __nullable restorableObjects))restorationHandler {
return [WXApi handleOpenUniversalLink:userActivity delegate:self];
https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/iOS.html
我使用 WechatOpenSDK (1.8.7.1)版本,微信分享的时候, - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options API_AVAILABLE(ios(9.0))走了Scheme回调,但是我APP调用小程序的时候,Scheme就不回调。
而且调用自检函数的错误信息已经是所有检查通过了。
6, 1, All Check Passed!,
WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ]
请问这种情况该怎么调?
怎么解决呀,而且分享回来还会闪退
你好,我又两个app,通用链接需要搞两个吗,还是说apple-app-site-association这里配置两个app的信息
https://developers.weixin.qq.com/community/develop/doc/0004aaf561ceb0a5bc7a3ec795b000?fromCreate=0 官方工作人员 什么时候能帮忙看看
搞了一天,Universal Link校验就是无法通过
使用苹果浏览器验证过的Universal Link,都是能正常打开自己的应用的,让人各种猜原因啊
还有这个日志函数,是用来搞笑的嘛
+ (voidstartLogByLevel:(WXLogLevel)levellogBlock:(WXLogBolock)logBlock
只打印成功的日志,失败的日志又没有具体错误原因ID,
UI提示还是Universal Link校验失败,跟没提示有啥区别
不明觉厉
Universal link 能吃Safari正常打开
在线求助!!!
哪位大神帮忙看看,universal link跳转都没问题,但是分享报错
wxlog:Error:fail to load Keychain status:-25300, keyData null:1
用检测方法一直不能到最后一步
step = WXULCheckStep(0), success = true, error = check passed, suggestion =
step = WXULCheckStep(1), success = true, error = check passed, suggestion =
step = WXULCheckStep(2), success = true, error = check passed, suggestion =
step = WXULCheckStep(3), success = true, error = check passed, suggestion =
wxlog:launch app with ul only success
step = WXULCheckStep(4), success = true, error = check passed, suggestion =
wxlog:Successfully starting WeChat with the universal link.
跳转到小程序,每次都跳转两次。App---微信链接--App--小程序
Universal Link 配置对的
App更新微信1.8.6.1版本SDK后出现“正在连接”的提示?每次分享出现二跳
https://developers.weixin.qq.com/community/develop/doc/0002ca9dd24018bdd2993dda05b800
Universal Link校验不通过/接入新SDK,跳到微信后再回跳App,流程就中止?
https://developers.weixin.qq.com/community/develop/doc/000880a051015855aea992f995bc09
你好,我的项目比较老,并没有UISceneDelegate,目前在iOS13上测试Universal link有效,但是不走onResp函数,请问如何处理呢?是必须让我的项目适配UISceneDelegate才能升级到最新的SDK吗?感谢。