新版微信的sdk必须使用unviersal link,在ulink没问题的情况下得在appdelegate里面实现ulink的回调。
友盟:
-(BOOL)application:(UIApplication*)applicationcontinueUserActivity:(NSUserActivity*)userActivityrestorationHandler:(void(^)(NSArray> *_Nullable))restorationHandler{
return [[UMSocialManager defaultManager] handleUniversalLink:userActivity options:nil];
}
微信:
- (BOOL)application:(UIApplication*)applicationcontinueUserActivity:(NSUserActivity*)userActivityrestorationHandler:(void(^)(NSArray> *__nullablerestorableObjects))restorationHandler{
return [WXApi handleOpenURL:userActivity delegate:self];
}