Firebase动态链接没有返回深层链接iOS

时间:2018-06-14 08:21:39

标签: ios objective-c firebase firebase-dynamic-links

我有一个与firebase动态链接集成的应用。我有一个奇怪的问题,当我处于调试模式时,我只能从动态链接中检索深层链接。剩下的时间它只返回我的深度链接= nil和error = nil。有没有人遇到过这个问题?

- (BOOL)application:(UIApplication *)application continueUserActivity: (NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler {

BOOL handled = [[FIRDynamicLinks dynamicLinks] handleUniversalLink:userActivity.webpageURL completion:^(FIRDynamicLink * _Nullable dynamicLink, NSError * _Nullable error) {
    if (dynamicLink && dynamicLink.url) {
        if (self.shouldReload) {
            [[EPLAppConfiguration sharedInstance] saveUniversalLinkUrl:dynamicLink.url.absoluteString];
        } else {
            [[EPLLinkManager sharedInstance] universalLinkTriggered:dynamicLink.url];
        }
    }
}];
[FIRDynamicLinks performDiagnosticsWithCompletion:nil];
return handled;

}

0 个答案:

没有答案