即使已安装应用程序,Firebase动态链接也始终会转到应用程序商店URL [英] Firebase dynamic link always goes to app store URL even if the app is installed

查看:84
本文介绍了即使已安装应用程序,Firebase动态链接也始终会转到应用程序商店URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Firebase动态链接集成到IOS应用程序中,但问题是,即使安装了该应用程序,该动态链接也将我带到应用程序商店页面以从应用程序商店下载该应用程序. 是否有人遇到过同样的问题,并且有解决问题的办法.

I am trying to integrate Firebase dynamic link into IOS app but the problem is that even if the app is installed the dynamic link is taking me to app store page to download the App from app store. Did anybody face the same problem and have solution for the same.

推荐答案

TL; DR:要使其正常运行,您还必须在应用设置中将Firebase动态链接设置为通用链接.为此,请参见下文.

TL;DR: To make it work, you must also set up the Firebase Dynamic Link as a universal link in your app settings. To do so, see below.

我的动态链接可用于预览页面,但是后来我添加了& efr = 1"以跳过预览页面并直接重定向到App Store或我的应用程序.之所以可以使用预览页面,是因为它调用了已经在应用程序中设置的通用链接.

My dynamic link worked with the preview page, but then I added "&efr=1" to skip the preview page and redirect directly to either the App Store or my app. It worked with the preview page because it called the universal link that was already set up with the app.

示例:我的应用名为Spontit.预览页之所以起作用,是因为打开"按钮重定向到了与我的应用程序链接的spontit.com.但是动态链接是 spontit.page.link -一个不同的域名-因此,如果您跳过预览页面,它会打开 spontit.page.link 而不是<在Safari中(而不是在我的应用中)strong> spontit.com ,然后始终重定向到App Store.

Example: My app is named Spontit. Preview page worked because the "Open" button redirected to spontit.com, which is linked to my app. But the dynamic link is spontit.page.link - a different domain name - and therefore, if you skip the preview page, it opens spontit.page.link and not spontit.com in Safari and so not my app, and subsequently redirected to the App Store always.

您必须将自定义动态链接(例如 spontit.page.link )设置为通用链接.请按照以下步骤操作.

You must set up the custom dynamic link (e.g. spontit.page.link) as a universal link. Follow these steps to do so.

来源: https://firebase.google.com/docs/dynamic -links/ios/receive

这篇关于即使已安装应用程序,Firebase动态链接也始终会转到应用程序商店URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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