bmfe / eros-plugin-ios-baseLibrary

eros ios sdk.
https://bmfe.github.io/eros-docs
MIT License
35 stars 50 forks source link

友盟分享无法回调的问题。 #11

Closed shawn-tangsc closed 6 years ago

shawn-tangsc commented 6 years ago

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    if (_isLoad == NO) {
        _isLoad = YES;

        [self startApp];
    }

//    return [BMRouterManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
    return [[UMSocialManager defaultManager] handleOpenURL:url sourceApplication:sourceApplication annotation:annotation];
}

在app Delegate 文件里面,如果是直接调用BMRouterManager 会导致无法回调,但是如果直接在该方法中替换成

return [[UMSocialManager defaultManager] handleOpenURL:url sourceApplication:sourceApplication annotation:annotation];

就能回调了。

xiaohuapunk commented 6 years ago

新版本已修复