簡體   English   中英

iOS上的Firebase動態鏈接有時會失敗

[英]Firebase Dynamic Links on iOS sometimes fails

我的iOS應用程序存在動態鏈接問題。

方案:用戶請求忘記密碼電子郵件->接收帶有動態鏈接的電子郵件

iPhone A:動態鏈接可正確打開應用

iPhone B:動態鏈接通過“打開”按鈕打開Firebase重定向頁面

我一直在研究:

  1. 應用程式版本相同
  2. iOS版本相同
  3. 用戶帳號相同
  4. apple-app-site-association文件顯示正確的appID
  5. ?d = 1調試顯示Android和網絡釣魚錯誤,但iOS不顯示
  6. DynamicLinks.performDiagnostics(完成:nil)說:performDiagnostic成功完成! 找不到錯誤。

不一致使得幾乎不可能進一步調試此問題。

有誰知道如何進行更多的研究/調試,或者甚至更好地解決此問題的線索? 在此先多謝!

來自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診斷調試:

---- 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 ----

對於那些最終來到這里的人,我發現了那是什么:

這不是代碼或配置問題,但顯然用戶可以禁用每個設備和每個應用程序的通用鏈接,這些鏈接在重新安裝后將保持不變。 完整的答案可以在這里找到: 鏈接

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM