iOS微信分享或QQ分享,跳转微信后,自动返回app,报PBItemCollectionServicer connection disconnected.网上说AppDelegate
3个代理方法都已经处理了
处理Universal Links回调
-(BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray<id<UIUserActivityRestoring>> * __nullable restorableObjects))restorationHandler NS_AVAILABLE_IOS(8_0); {
// Demo处理Universallink的示例代码
if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
NSURL *url = userActivity.webpageURL;
if (url && [TencentOAuth CanHandleUniversalLink:url]) {
// 兼容[QQApiInterface handleOpenURL:delegate:]的接口回调能力
[QQApiInterface handleOpenUniversallink:url delegate:(id<QQApiInterfaceDelegate>) [QQApiShareEntry class]];
return [TencentOAuth HandleUniversalLink:url];
}
}
return YES;