Firebase动态链接无法幸免于安装 [英] Firebase Dynamic Links not survive installation

查看:77
本文介绍了Firebase动态链接无法幸免于安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了Firebase教程,已经实现了Firebase SDK +动态链接+管理了我的应用程序以支持关联域,并且除了动态链接无法在安装过程中生存之外,其他所有功能都正常运行。

I have went through the Firebase Tutorial, I have implemented Firebase SDK + Dynamic links + Managed my app to support Associated Domains and everything works fine except that the dynamic link doesn't survive the installation.

我已经通过Firebase控制台创建了动态链接,

I have created a dynamic link through Firebase console,


  1. 安装应用程序后,一切正常。动态链接会使用相关内容启动我的应用程序

  1. When app already installed, everything works fine. The dynamic link launch my app with the relevant content

未安装我的应用程序时,动态链接会按预期方式打开AppStore,然后安装通过Xcode的应用程序,但没有任何反应,我在第一次启动时没有收到任何内容。

When my app isn't installed, the dynamic link open the AppStore as expected and than I'm installing the app through Xcode, but nothing happens I don't receive any content on first launch.

我做了什么:


  1. 请确保Xcode中的Scheme URL-> Targets-> MyAPP-> Info-> URL Types与我的应用包相同标识符。

  2. 请确保在我的FireBaseURL / apple-app-site-association下该内容正确:
    { applinks:{ apps:[], details:[{ appID: MyTeamID.com.foo.bla, paths:[ / *]}]}}

  3. 确保我在AppDelegate

  4. 我尝试在AppDelegate中定义[FIROptions defaultOptions] .deepLinkURLScheme = @ com.foo.bla

  5. 请确保在关联的域中没有多余的 /之类的东西。我支持的域是applinks:FireBaseURL。

  6. 再次检查Firebase控制台中定义的TeamID与我的应用程序TeamID相同。

  7. Of当然,我在StackOverFlow中搜索了很多产品,但没有成功找到适合我的解决方案。

  1. Make sure that the Scheme URL in Xcode -> Targets -> MyAPP -> Info -> URL Types is the same as my app Bundle Identifier.
  2. Make sure that under my FireBaseURL/apple-app-site-association the content is fine: {"applinks":{"apps":[],"details":[{"appID":"MyTeamID.com.foo.bla","paths":["/*"]}]}}
  3. Make sure that I defined in AppDelegate
  4. I have tried do define in the AppDelegate [FIROptions defaultOptions].deepLinkURLScheme = @"com.foo.bla"
  5. Make sure that under associated Domains there are no extra '/' or something. My Supported domain is applinks:FireBaseURL.
  6. Double check that the TeamID that defined in the Firebase console is the same as my application TeamID.
  7. Of-course I have searched a-lot in StackOverFlow without any success to find a solution that worked for me.

有什么建议吗?

更新

好,所以我发现我在使用旧版本Firebase SDK的版本,因此我更新了Firebase SDK,并开始在蜂窝网络上而不是在Wi-Fi上工作,一切工作都非常吸引人。
多亏@Oleksiy Ivanov

OK, so I found that somehow I'm using an old version of the Firebase SDK, so I updated the Firebase SDK + start working on the cellular instead of the Wi-Fi and everything works like a charm. Thanks to @Oleksiy Ivanov

推荐答案

@MKaro能否将日志记录添加到UIApplicationDelegate方法应用程序:openURL:options:并打印出首次启动后是否有链接传递到您的应用程序?如果找到链接,它将在此处传递。当Firebase Dynamic Links无法检索链接时,仍然会使用 dismiss链接调用此方法(此文献记录不充分)。如果您在首次启动后没有看到对此方法的任何调用,则表示Firebase动态链接配置​​错误。

@MKaro Can you add logging to your UIApplicationDelegate method application:openURL:options: and print out is there link passed to your App after first launch? If link is found it will be passed here. When Firebase Dynamic Links failed to retrieve the link, still there will be call to this method with "dismiss" link (this is poorly documented). If you do not see any calls to this method after first launch, this means Firebase Dynamic Links is misconfigured.

另一点需要注意,Firebase动态链接将检查未决动态链接仅在首次安装后。您必须删除该应用程序才能强制检索链接。

Another thing to watch out, Firebase Dynamic Links will check for pending dynamic link only after first install. You have to remove the App to force retrieving the link.

在WiFI vs Cellular上尝试首次安装方案可能是值得的。网络类型可能会对此产生影响。

It may be worthwhile to try the first install scenario on WiFI vs Cellular. Type of the network may affect this.

这篇关于Firebase动态链接无法幸免于安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆