通用链接不起作用,横幅未在Safari中显示 [英] Universal Links not working and banner is not showing in Safari

查看:236
本文介绍了通用链接不起作用,横幅未在Safari中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用我的应用程序中的通用链接。



当url指向野生动物园时,应该在顶部显示横幅中显示打开应用程序的选项。



我创建了apple-app-site-association并将其托管在我的后端。当我检查它时



2)检查如果您的手机运行的是iOS 11.2。此版本的iOS有时有时无法下载AASA文件。为了解决这个问题,您应该删除该应用程序,重新启动手机,然后重新安装它。我建议检查设备日志以查看是否已正确安装。 (我建议您仅出于理智而更新AASA时执行此操作)



3)检查是否已禁用应用中的通用链接(可能不是您的问题)但请检查)。您可以通过将链接复制到Notes应用程序中,然后长按该链接以提示操作表来执行此操作。如果看到在应用程序名称中打开,则可以选择该选项以打开该应用程序的通用链接。如果看不到,则说明AASA文件未正确下载或配置。



4)使用分支机构的iOS SDK 进行深层链接。这将节省您数小时的调试时间。他们为您处理AASA文件,并提供延迟的深层链接解决方案和其他边缘情况。


I am working on Universal Links in my app.

When the url hits the safari it should show the option to open the app in a banner at the top of the Safari browser, but I don't see it.

I created apple-app-site-association and hosted it on my backend. When I check it https://www.xxxxx.com/apple-app-site-association . I can see the app-site-association file.

In the Entitlements I've added associated domains under items applinks:v100.xxxxxx.com/reset_password*. The link is https://v100.xxxxxxx.com/reset_password?token=6d3ec67ff5bbf2214c895839c125e8f80ec83a90 and the apple-app-site-association is like this

{
 "applinks": {
 "apps": [],
 "details": [
 {
  "appID": "Teamid.Bundelid",
  "paths": ["*"]
 }
{
"appID": "appid.Bundelid",
"paths": ["*"]
}
]
}
}

Thanks for quick response.

解决方案

This banner should show up if Universal Links are configured properly. It seems like your Universal Linking is not configured.

Your entitlement's associated domains has a LINK, not a DOMAIN

At first glance, it looks like your entitlements file has the full URL when it really should just have the domain. Change your entitlements to have applinks:v100.xxxxxx.com instead of applinks:v100.xxxxxx.com/reset_password*. If that doesn't do the trick, then keep reading

Still broken? Try these steps

It looks like your AASA file is hosted correctly, so I recommend trying these steps:

1) Make sure that your entitlements file is included in your project. This is necessary for downloading the AASA. Ensure that your domains are correct.

2) Check if your phone is running iOS 11.2. This version of iOS is having trouble actually downloading the AASA file sometimes. To solve this you should delete the app, restart your phone, then reinstall it. I recommend checking the device logs to see whether it is being installed properly. (I'd recommend doing this when you update your AASA just for sanity)

3) Check to see whether you have disabled Universal Links in your app (probably not your issue but check). You can do this by copying the link into the Notes app then long pressing on it to prompt an action sheet. If you see "Open in App name" then you can select that to turn on your Universal Links for that app. If you don't see that then the AASA file was not downloaded or configured properly.

4) Use Branch's iOS SDK for deep linking. It will save you SO MANY HOURS of debugging. They handle the AASA file for you as well as providing the deferred deep linking solution and other edge cases.

这篇关于通用链接不起作用,横幅未在Safari中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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