我的iOS应用程序存在动态链接问题。
方案:用户请求忘记密码电子邮件->接收带有动态链接的电子邮件
iPhone A:动态链接可正确打开应用程序
iPhone B:动态链接通过“打开”按钮打开Firebase重定向页面
我一直在研究的东西:
不一致导致几乎不可能进一步调试此问题。
有人对如何进行研究或调试甚至在如何修复方面有更好的线索吗?提前非常感谢!
来自AppDelegate的代码以配置Firebase:
// Configure Firebase
#if PRODUCTION
let GoogleServiceName = "GoogleService-Info"
#elseif ACCEPTANCE
let GoogleServiceName = "GoogleService-Info-Acceptance"
#else
let GoogleServiceName = "GoogleService-Info-Development"
#endif
let filePath = Bundle.main.path(forResource: GoogleServiceName, ofType: "plist")
guard let fileopts = FirebaseOptions(contentsOfFile: filePath!)
else {
assert(false, "Couldn't load config file")
return false
}
#if PRODUCTION
fileopts.deepLinkURLScheme = "***-production"
#elseif ACCEPTANCE
fileopts.deepLinkURLScheme = "***-acceptance"
#else
fileopts.deepLinkURLScheme = "***-development"
#endif
FirebaseApp.configure(options: fileopts)
Firebase Diagnostics调试:
---- Firebase Dynamic Links diagnostic output start ----
Firebase Dynamic Links framework version 3.0.1
System information: OS iOS, OS version 11.4, model iPhone
Current date 2018-07-30 11:28:41 +0000
Device locale en-US (raw en_US), timezone Europe/Amsterdam
WARNING: iOS Simulator does not support Universal Links. Firebase Dynamic Links SDK functionality will be limited. Some FDL features may be missing or will not work correctly.
Specified custom URL scheme is ***-acceptance and Info.plist contains such scheme in CFBundleURLTypes key.
performDiagnostic completed successfully! No errors found.
---- Firebase Dynamic Links diagnostic output end ----
答案 0 :(得分:0)
对于那些到这里来的人,我发现它是什么:
这不是代码或配置问题,但显然用户可以禁用每个设备和每个应用程序的通用链接,这些链接在重新安装后将保持不变。完整的答案可以在这里找到:link