我有一个与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;
}