1

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

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

任何帮助表示赞赏!

4

1 回答 1

2

事实证明,延迟深度链接在 application:openURL:options:for iOS 9.0+ 版本中处理,通用深度链接在 application: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 ----
于 2017-09-14T19:01:13.827 回答