动态链接不会打开该应用程序,而“在应用程序中打开"该选项在上下文菜单中不可用 [英] Dynamic link does not open the app, and "open in app" option not available in context menu

查看:110
本文介绍了动态链接不会打开该应用程序,而“在应用程序中打开"该选项在上下文菜单中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚遇到Firebase动态链接非常奇怪的行为. 除了一个设备,它在我们所有的测试设备上都能完美运行.

此特定设备是iPhone-x,并且该帐户已通过iTunes恢复(不确定此信息是否相关,但我正尝试提供完整图片).

我们的应用已从应用商店中安装到此设备上(也尝试删除并重新安装),但是当尝试打开动态链接时,它会打开Safari,而我们有一个打开"按钮,可打开应用商店页面这个程序.

当尝试长按遇到相同问题的开发人员建议的链接时,我们只有一个显示打开"的按钮,它将再次打开Safari.我希望在安装该应用程序时,我们将有两个选择: 1.在Safari中打开" 2.在[App]中打开"

有人曾经遇到过这个问题吗?有谁知道如何解决这个问题?

解决方案

此处的总体诊断是设备上的Universal Linking配置不正确.如果通用链接可在所有其他设备上使用,则可能是AASA文件未正确下载的情况.最近, iOS 11.2出现了问题. /p>

检查设备日志

我建议您在安装应用程序时检查设备日志,以查看AASA文件是否已正确下载.

1)删除您的应用并将设备插入计算机

2)打开Xcode并导航到 Window> Devices&模拟器

3)在左侧菜单中选择设备

4)在窗口底部,您应该在框中看到一个三角形.单击此按钮将显示设备日志.

5)使用cmd-f搜索applinks,以及您的应用是否正确下载了AASA.您应该会看到类似

的内容

Added service 'applinks', appID 'RXXXXXXXP.io.branch.Branchsters', domain 'branchster.app.link'

如果不是这种情况,则表明您没有下载AASA文件,您可能需要删除该应用程序,重新启动手机,然后重试.

I just encountered a very weird behaviour with Firebase dynamic links. It works perfectly on all of our test devices except for one.

This specific device is an iPhone-x, and the account was restored via iTunes (Not sure if this info is relevant, but i'm trying to give a full picture).

Our app is installed on this device from the app store (also tried deleting and reinstalling), but when trying to open a dynamic link it opens Safari instead, there we have the "open" button that opens the app store page of this app.

When trying to long tap on the link as suggested by developers that experienced the same issue, we have only one button that says "Open" which opens Safari again. I would expect that when the app is installed we would have two options: 1. "Open in Safari" 2. "Open in [App]"

Has anyone experienced this issue before? Anyone has any idea how to solve this?

解决方案

The overall diagnoses here is that Universal Linking is not configured properly on the device. If Universal Links works on all other devices, then it is probably the case that the AASA file is not being downloaded properly. iOS 11.2 has had issues with this recently.

Check device logs

I suggest that you check the device logs when installing the application to see if the AASA file is being downloaded properly.

1) Delete your app and plug in the device to your computer

2) Open up Xcode and navigate to Window > Devices & Simulators

3) Select the device in the left-hand menu

4) In the bottom of the window you should see a triangle in a box. Clicking this will bring up the device logs.

5) Use a cmd-f to search for applinks and if your app downloaded the AASA correctly. You should see something like

Added service 'applinks', appID 'RXXXXXXXP.io.branch.Branchsters', domain 'branchster.app.link'

If this is not the case, then it looks like you AASA file is not being downloaded and you may need to delete the app, restart your phone, and try again.

这篇关于动态链接不会打开该应用程序,而“在应用程序中打开"该选项在上下文菜单中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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