我的要求是处理 iOS 应用程序上的通用链接。但动态 link.url 似乎返回如下错误 -
"@"error" : @"unauthorized user: username=social-app-invite methodName=/FirebaseLookupService.LookupAppsSummary protocol=loas securityLevel=integritY"
当我从笔记应用程序中单击动态链接(https://****.app.goo.gl/****)时,我的 ios 应用程序将被定向到以下回调 -> 在这个函数中我有以下代码 -
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray * __nullable restorableObjects))restorationHandler
{
NSURL *incomingURL = userActivity.webpageURL;
if(incomingURL){
BOOL handled = [[FIRDynamicLinks dynamicLinks]
handleUniversalLink:incomingURL
completion:^(FIRDynamicLink * _Nullable dynamicLink,
NSError * _Nullable error) {
if (dynamicLink.url){`
**HANDLE THE DYNAMIC LINK HERE**
}else{
**CODE IS RETURNING ERROR** NSLog(@"error %@",error);
}
}];
return handled;
}else{
return false;
}
}
我已正确遵循 firebase 文档。请建议这里出了什么问题?