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
我也是在第6步报错,不过有的手机可以。找到的原因是安装app的时候苹果没有请求对应的通用链接域名,不知道怎么解决。麻烦技术看到麻烦解决下。
自检到第六步就失败 请问下问题出在哪里?已经摸索很久麻烦看下 打印日志如下: 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409
分享成功之后从微信返回不到APP,打印日志如下:
2020-09-10 16:44:17.591247+0800 SDKSample[3632:1302778] 0, 1, check passed,
2020-09-10 16:44:17.591419+0800 SDKSample[3632:1302778] 1, 1, check passed,
2020-09-10 16:44:17.593904+0800 SDKSample[3632:1302778] 2, 1, check passed,
2020-09-10 16:44:17.611917+0800 SDKSample[3632:1302778] log : wxlog:set property list
2020-09-10 16:44:17.618327+0800 SDKSample[3632:1302778] 3, 1, check passed,
2020-09-10 16:44:17.671250+0800 SDKSample[3632:1302778] log : wxlog:launch app with ul only success
2020-09-10 16:44:17.671326+0800 SDKSample[3632:1302778] 4, 1, check passed,
2020-09-10 16:44:17.671355+0800 SDKSample[3632:1302778] log : wxlog:Successfully starting WeChat with the universal link.
2020-09-10 16:44:17.793980+0800 SDKSample[3632:1302800] PBItemCollectionServicer connection disconnected.
2020-09-10 16:44:19.600141+0800 SDKSample[3632:1302778] 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409
2020-09-10 16:44:19.600334+0800 SDKSample[3632:1302778] log : wxlog:Error:WXCheckULStepResult[success: 0, errorInfo: Universal Link check failed. The application is launched by WeChat via scheme, suggestion: Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409]
2020-09-10 16:44:24.330059+0800 SDKSample[3632:1302778] log : wxlog:send req[], appID:wx38099f800a28fb4a, universalLink: https://bbuat.kaitaiming.com/lifeInsureAgentBaoBao/, sdkVersion:1.8.7.1
2020-09-10 16:44:24.335300+0800 SDKSample[3632:1302778] log : wxlog:set property list
2020-09-10 16:44:24.375133+0800 SDKSample[3632:1302778] log : wxlog:launch app with ul only success
2020-09-10 16:44:24.375440+0800 SDKSample[3632:1302778] log : wxlog:launch app with universal link, ret:1
2020-09-10 16:44:24.375587+0800 SDKSample[3632:1302778] log : wxlog:req:, cid:b5c606ffbb8b948c70f59c4ee7022e8c998afa06
2020-09-10 16:44:24.474778+0800 SDKSample[3632:1302799] PBItemCollectionServicer connection disconnected.
2020-08-27 16:01:47.347161+0800 iBabyDoctor[3503:980189] checkUniversalLinkReady : 5, 0, Universal Link check failed. The application is launched by WeChat via scheme, Common problems self-check guide: [微信开放平台App iOS端接入新版本SDK 常见问题自查指引]https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409
应用信息:wx6a2abe280399cd66;
https://m.ibabygroup.cn/apple-app-site-association;
微信号:Mr-RedArmy
2020-08-27 16:01:47
官网文档我仔细对过,没发现问题 ,但就是第六步验证过不了,在safair自检跳转也是没问题。 请问怎么解决呢
另外应用通过微信审核后,修改微信后台的开发信息栏,要不要审核时间呢?
友盟报错日志“微信分享报错'由于invalid_app无法分享到微信。”,友盟反馈到的信息是因为微信内部错误,想请问一下是什么原因呢?
你好,自检全部通过。 回调走的 continueUserActivity 方法,然后就不跳转到微信了。
点击分享,跳转到微信,再跳回到 app,就停止了,为什么?
wx自检:6, 1, All Check Passed!,
WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ]
系统是 iOS 13
你好 我这边其他页面都微信分享正常 只有一个集成了网易直播的页面 能跳转到微信但是不会显示联系人列表 分享到朋友圈也是不能显示朋友圈分享的界面
[WXApi sendReq:req completion:^(BOOL success) {
}];
但是在这个方法的回调里打了断点后再运行就能正常跳转 自检方法也只能到第四步 求解决
2020-06-29 18:12:38.447796+0800 TestWeixin[450:38756] WeChatSDK 0, 1, check passed,
2020-06-29 18:12:38.448146+0800 TestWeixin[450:38756] WeChatSDK 1, 1, check passed,
2020-06-29 18:12:38.450261+0800 TestWeixin[450:38756] WeChatSDK 2, 1, check passed,
2020-06-29 18:12:38.467126+0800 TestWeixin[450:38756] WeChatSDK log : wxlog:set property list
2020-06-29 18:12:38.473491+0800 TestWeixin[450:38756] WeChatSDK 3, 1, check passed,
2020-06-29 18:12:38.496764+0800 TestWeixin[450:38756] WeChatSDK log : wxlog:Error:launch app with ul only fail, url:https://help.wechat.com/app/wx91ee9e47704dae04/sendreq/?wechat_auth_context_id=TestAutoCheckContextId_e312a10b4bded6115265bad238dd488d3db7f78d&wechat_app_bundleId=com.dnaer.english
2020-06-29 18:12:38.496821+0800 TestWeixin[450:38756] WeChatSDK 4, 0, The universal link for WeChat is not in effect., You can try uninstalling and reinstalling WeChat.
2020-06-29 18:12:38.496861+0800 TestWeixin[450:38756] WeChatSDK log : wxlog:Error:WXCheckULStepResult[success: 0, errorInfo: The universal link for WeChat is not in effect., suggestion: You can try uninstalling and reinstalling WeChat.]
第4步一直过不去,不知道为什么