打开firebase链接后,在设备上重新安装应用程序时,始终会返回一个链接 [英] Once opening a firebase link always returns a link when reinstalling the app on a device

查看:281
本文介绍了打开firebase链接后,在设备上重新安装应用程序时,始终会返回一个链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前忙着使用firebase动态链接,除了一件事以外一切正常。

I am currently bussy using the firebase dynamic link and everything works well except one thing.

当我点击firebase链接时,我将被重定向到appstore我可以在哪里下载该应用程序。当我下载应用程序时,调用openURL方法并且动态链接不是空的,就像它应该的那样。

When I click on a firebase link, I will be redirected to the appstore where I can download the app. When I download the app, the openURL method is called and the dynamic link is not empty, just as it should be.

现在,如果我删除应用程序并重新安装它,动态链接仍然不是空的。为什么会这样?

Now if I delete the app and reinstall it again, the dynamic link is still NOT empty. Why is that?

推荐答案

在您的应用收到链接后,Firebase动态链接不会被消耗。自您点击Safari中的链接后,动态链接的生命周期为1小时。要通知App以前使用的链接,我们提供参数 DynamicLink.matchType

Firebase Dynamic Link will not be "consumed" after link was received by your App. Dynamic Link will have 1 hour lifetime since you clicked on link in Safari. To inform App that link was previously used, we provide parameter DynamicLink.matchType.

当您的应用首次接收动态链接时,matchType将为 default 。 (如果复制唯一匹配成功,则此处为例外,则matchType将为唯一。)所有后续链接将具有matchType weak 。此外,如果matchType的值为 none ,则表示未达到匹配。

When your App first receiving the Dynamic Link the matchType will be default. (Exception here if copy unique match succeeded, then matchType will be unique.) All subsequent links will have matchType weak. Also if matchType have value none, this means match was not achieved.

请提供您收到的链接示例第一次和以后的时间,以确保我解释你的情况是正确的。

Please provide example of the link you receiving for the first and subsequent time to be sure I interpreting you situation correct.

这篇关于打开firebase链接后,在设备上重新安装应用程序时,始终会返回一个链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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