Firebase Dynamic Links如何在应用程序安装后继续生存的背后的理论是什么?

时间:2019-01-31 22:19:19

标签: ios firebase firebase-dynamic-links

我花了几分钟查看了Github上的Firebase iOS SDK代码,但我无法将Firebase Dynamic Links如何在应用程序安装后幸存下来。似乎使用了某种类型的指纹识别。我不确定是否使用:

  • iOS Pasteboard-但是,当用户在安装前单击链接时,Safari如何写呢?
  • cookie-SDK是否会在安装后读取cookie,或者在UIWebview中将XmlHttpRequest设置为Firebase服务?
  • 请求Firebase服务的IP地址和用户代理?
  • 还有别的吗??

1 个答案:

答案 0 :(得分:1)

答案似乎在iOS SDK FIRDLDefaultRetrievalProcessV2.m文件中的注释中:

// Reason for this string to ensure that only FDL links, copied to clipboard by AppPreview Page
// JavaScript code, are recognized and used in copy-unique-match process. If user copied FDL to
// clipboard by himself, that link must not be used in copy-unique-match process.
// This constant must be kept in sync with constant in the server version at
// durabledeeplink/click/ios/click_page.js

然后,SDK使用UIPasteboard读取剪贴板。