简体   繁体   English

Firebase动态链接不起作用

[英]Firebase Dynamic Links, not working

I am trying to investigate Firebase Dynamic Links, at this point without much success. 我目前正在尝试研究Firebase动态链接,但没有成功。

I got started with this: https://firebase.google.com/docs/dynamic-links/ios/create . 我从这里开始: https : //firebase.google.com/docs/dynamic-links/ios/create Though I followed the instruction as much as I could. 尽管我尽我所能地遵循了说明。 I seem to hit a problem when testing: 我在测试时似乎遇到了一个问题:

https://app_code.app.goo.gl/apple-app-site-association

With my information typing something like the line below in the browser, in Safari (on my computer, or mailing the link to my iphone): 在我的信息输入类似浏览器,Safari(在我的计算机上,或将链接邮寄到我的iPhone)的下面的行中:

https://zy37bs.app.goo.gl/apple-app-site-association

I get this result: 我得到这个结果:

{"applinks":{"apps":[],"details":[]}}

If I test the same link in FireFox I get about seven line of garbage (starting with the same as above), but it does not seem to contain anything usable. 如果我在FireFox中测试相同的链接,则会得到大约7行垃圾(从与上面相同的开头),但是似乎没有任何可用的东西。

I have never touched Firebase Dynamic Links before. 我以前从未接触过Firebase动态链接。 What can be the problem? 可能是什么问题?

This relates to how iOS Universal Links work. 这与iOS通用链接的工作方式有关。 Universal Links are a protocol from Apple that Firebase uses. 通用链接是苹果公司Firebase使用的协议。 The URL https://zy37bs.app.goo.gl/apple-app-site-association is not a Universal Link — it is the location of a verification file required by iOS to enable Universal Links. URL https://zy37bs.app.goo.gl/apple-app-site-association 不是通用链接-它是iOS启用通用链接所需的验证文件的位置。 An actual Dynamic Link (enabled for Universal Links) would look something like https://zy37bs.app.goo.gl/my-link-slug . 实际的动态链接(已为通用链接启用)看起来像https://zy37bs.app.goo.gl/my-link-slug

For a more conceptual overview of how Universal Links work, check out this blog post . 有关通用链接如何工作的更概念性概述,请查看此博客文章 It won't be totally relevant in your case because Firebase takes care of the hosting components, but it should help clarify what is happening under the hood. 它与您的情况并不完全相关,因为Firebase会处理托管组件,但它应该有助于弄清实际情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM