应用程序在iOS上下载后,Firebase深层链接无法跟踪链接(延迟深层链接)

时间:2017-09-13 15:42:53

标签: ios firebase deep-linking firebase-dynamic-links deeplink

目前,我遇到的问题是,如果用户没有下载应用并点击深层链接,则会将其带到应用商店。下载应用程序后,应用程序会自动打开,但它会遵循常规注册流程,并且不会跟踪深层链接。

如果下载应用程序,它将调用continueUserActivity:并处理用户登录/注销的流程。

感谢任何帮助!

2 个答案:

答案 0 :(得分:2)

结果是在应用程序中处理了延迟深度链接:openURL:options:对于iOS版本9.0+,并且在应用程序中处理通用深度链接:continueUserActivity:restorationHandler:

我还将Firebase SDK版本更新为2.1.0

这是我在实施之前输出的[FIRDynamicLinks performDiagnosticsWithCompletion:nil]:

---- Firebase Dynamic Links diagnostic output start ----

Firebase Dynamic Links framework version 2.1.0

System information: OS iOS, OS version 10.2.1, model iPhone

Current date 2017-09-13 22:42:52 +0000

AutomaticRetrievalEnabled: YES

ERROR: UIApplication delegate <TalktalaAppDelegate: 0x1740b3860> does 
not implements selector application:openURL:options:. FDL depends on 
this implementation to retrieve pending dynamic link.

Specified custom URL scheme is com.talktala.talktala and Info.plist . 
contains such scheme in CFBundleURLTypes key.

AppID Prefix: 29998V6LPA, Team ID: 29998V6LPA, AppId Prefix equal to         
Team ID: YES

performDiagnostic detected 1 ERRORS.

---- Firebase Dynamic Links diagnostic output end ----

后:

---- Firebase Dynamic Links diagnostic output start ----

Firebase Dynamic Links framework version 2.1.0

System information: OS iOS, OS version 10.3.3, model iPhone

Current date 2017-09-14 16:43:26 +0000

AutomaticRetrievalEnabled: YES

Specified custom URL scheme is com.talktala.talktala and Info.plist contains such scheme in CFBundleURLTypes key.

AppID Prefix: 29998V6LPA, Team ID: 29998V6LPA, AppId Prefix equal to Team ID: YES

performDiagnostic completed successfully! No errors found.

---- Firebase Dynamic Links diagnostic output end ----

答案 1 :(得分:0)

您是否收到过对您的UIApplicationDelegate类的openURL的调用?你能发布你收到的内容吗? 您正在集成哪个版本的Firebase动态链接iOS SDK? 请在此处发布[FIRDynamicLinks performDiagnosticsWithCompletion:nil]方法的输出。或者随时打开Firebase支持服务单或发送电子邮件至oleksiyi google.com