我们的通用链接已经运行很长时间了。今天我添加了 AASA 文件的路径(我们称之为 sub2)。即使重新安装后,该应用程序也无法识别该路径。
\n当我调试时,我注意到 applinks 服务正在获取文件,但请求没有进入我们的服务器。该服务确实获取了旧的 AASA 文件,因此苹果的 CDN 似乎正在缓存该文件。
\n调试:
\nAASA 文件有效:使用Branch Validator以及Apple 的 appsearch-validation-tool中的新 URL 进行测试
\n{\n "applinks": {\n "apps": [],\n "details": [\n {\n "appID": "redacted",\n "paths": [\n "/main/*",\n "/sub1/*",\n "/sub2/*",\n "/pagex-*"\n ]\n }\n ]\n },\n "activitycontinuation": {\n "apps": [\n "redacted"\n ]\n }\n}\n
Run Code Online (Sandbox Code Playgroud)\nApple tool: tested https://redacteddomain/sub2/something\nLink to Application: Passed\nUniversal true\n...\n
Run Code Online (Sandbox Code Playgroud)\n文件未缓存在我们这边/Cloudflare:上面的验证器确认了这一点,但为了确保我也清除了缓存
\nIphone 控制台显示正在获取 AASA 文件:
\nBeginning data task AASA-64DCD3xx-xxxxx { domain: …
ios applinks branch.io ios-universal-links apple-app-site-associate
通用链接在iOS 12上运行正常,但是昨天我更新到iOS 13.1时遇到了问题。轻按一下即可打开应用程序的URL只是在浏览器中打开。iOS 13上的一些用户报告了同样的情况。
同样,我在iOS 12.4上从未遇到过此问题
我相信AASA文件未正确下载。Open
当我登陆其中一个网址时,我尝试点击Safari顶部显示的横幅广告。这没有帮助。
有时,在几次重新安装并重新启动后,它仍能正常工作,但是当您再次重新安装时,它将停止工作。
我发现了此博客文章https://ios13.dev/universal-links-debugging-on-ios-13-cjwsux93w001p6ws1swtstmzc ,其中描述了日志的查看。
我导出了sysdiagnose,而我的swcutil_show.txt为我的应用程序显示了此信息
Service: applinks
App ID: (my app ID)
App Version: 102
Domain: (app.myurl.com)
User Approval: unspecified
Site/Fmwk Approval: unspecified
Flags:
Last Checked: 2019-09-26 00:48:24 +0000
Next Check: 2019-09-30 23:51:38 +0000
Run Code Online (Sandbox Code Playgroud)
而其他应用看起来像这样
Service: applinks
App ID: ZL6BUSYGB3.com.apple.news
App Version: 2300.5
Domain: news.apple.com
Patterns: {"/":"*"}
User Approval: unspecified
Site/Fmwk Approval: approved
Flags: systemApplication
Last Checked: 2019-09-25 18:45:50 +0000
Next Check: 2019-09-30 17:49:04 +0000
Run Code Online (Sandbox Code Playgroud)
由于某种原因,它缺少Patterns
(来自AASA)且Site/Fmwk Approval
为 …
我已将apple-app-site-association
文件添加到网站的根目录,但IIS未提供该文件.
在没有文件扩展名的情况下,使服务器提供此特定文件的最佳方法是什么?web.config中有没有办法明确说"提供此文件"?
我一直在阅读并找到了一些关于 apple-app-site-association 缓存的现有答案:
这些答案都表明关联文件仅在安装/更新时从 Web 获取。
这让我感到担忧,因为这意味着我需要将文件的更新与我的应用程序的版本同步。
这也意味着,如果我不希望普遍链接的某些 URL(例如我的联系页面的/contact
)最初未从我的关联文件中列入黑名单,则未更新我的应用程序的用户在尝试访问该页面时将永远拥有糟糕的体验。
我的问题是:这里有人知道强制我的应用程序更新其关联文件而无需发布新版本并等待我的所有用户更新的方法吗?
编辑还有,为什么?
我正在使用苹果的应用程序站点关联验证工具,在此处找到:https : //search.developer.apple.com/appsearch-validation-tool
它给了我错误“错误无法解析应用程序站点关联”但是我已经成功地在 /apple-app-site-association 和 /.well-known/apple-app-site-association 下载了文件,并且都下载了,似乎是正确的json。
我试图验证的域是 app.skyresponse.com
我的网络服务器日志确认成功获取,其他第三方工具确认 apple-app-site-association 配置似乎正确。( https://branch.io/resources/aasa-validator/ )
我正在通过 AWS Cloudfront 从 AWS S3 提供文件,并且一直在反复试验所有设置,从内容类型到 SSL 证书版本支持。
任何人都可以对此有所了解?这将不胜感激。
I'm having a lot of trouble with serving a apple-app-site-association file in ReactJS project.
I've searched a lot of GitHub issues pages (for ReactJS, Gatsby, and Angular), forums, and a lot of online communities, and it seems that I can't find a solution for this.
What I've tried is:
<link rel="apple-app-site-association" href="%PUBLIC_URL%/.well-known/apple-app-site-association">
into public/index.htmlTesting through the …
我在我的iOS应用程序中添加了通用链接
messages http://somesite.com/message/list/ >> opens the app to messages
review http://somesite.com/review/add/ >> opens the app to review
place http://somesite.com/place/add/ >> opens the app to place
photo http://somesite.com/photo/add/ >> opens the app to photo
Run Code Online (Sandbox Code Playgroud)
所有工作都按预期工作,我的问题是:如何排除路径或网址,甚至从未打开应用程序?
例如
somepage http://somesite.com/somepagelink >> SHOULDN'T OPEN APP, it must show up in the browser.
Run Code Online (Sandbox Code Playgroud)
苹果应用网站关联文件
{
"applinks":
{
"details": [
{
"paths": ["*", "NOT /somepagelink/*"],
"appID": "ID1.myApp"
},
{
"paths": ["*", "NOT /somepagelink/*"],
"appID": "ID2.myApp"
}],
"apps": []
},
"activitycontinuation":
{
"apps": ["ID1.myApp","ID2.myApp"]
}
}
Run Code Online (Sandbox Code Playgroud)
这是排除路径的正确方法吗? …
在 iOS 14 上,您可以选择 Safari 以外的其他默认浏览器。如果您使用其他浏览器,该浏览器将要求用户更改其默认浏览器。
我已经安装了很多浏览器(Chrome、Firefox、Edge、Opera、Brave...)并将它们都设置为我的默认浏览器。
当我尝试打开通用链接时出现问题(当 Safari 是默认浏览器时它工作得很好),这似乎不起作用。使用 Safari 作为默认浏览器,通用链接将起作用,并且相应的本机应用程序正在打开。但是,将不同于 Safari 的任何其他浏览器设置为默认值时,该功能将被破坏并且通用链接不会打开本机应用程序。
有没有人经历过类似的事情?为什么会发生这种情况以及如何解决?
非常欢迎任何帮助
mobile-safari ios-universal-links apple-app-site-associate ios14
我现在在商店有一个应用程序.它没有与通用链接一起使用.然后我更新应用程序并将Apple-app-site-association文件添加到我的网站.重新安装应用程序可能是解决方案,但我的应用程序已经在App Store中分发,它不太可能要求用户删除它并重新安装.
是否有任何机会让iOS或应用程序获取我更新的apple-app-site-association文件.
objective-c ios ios-universal-links ios10 apple-app-site-associate
我是 iOS 的新手,并设法在此之后为应用程序实现了 iOS 通用链接。
我已经创建并上传了apple-app-site-association并配置/准备了应用程序来处理通用链接。
一切正常,当我通过 xCode 将应用程序构建到真实设备中时,我可以成功测试它。但是,通过 TestFlight 安装应用程序时,通用链接不起作用。
通过 xCode 安装应用程序时,我可以在我的 Web 服务器中看到对 apple-app-site-association 文件的 HTTP 请求。但是当通过 TestFlight 安装它时,似乎并没有尝试获取关联文件。
有谁知道这是否是预期的,或者在 TestFlight 上部署时如何使通用链接正常工作?
iphone ios swift ios-universal-links apple-app-site-associate
这是我的设置:
我的 apple-app-site-association 如下:
{
"webcredentials": {
"apps": [ "TeamID.BundleId1",
"TeamID.BundleId2" ]
}
}
Run Code Online (Sandbox Code Playgroud)
当然,这些值将替换为我的团队 ID 和我的 2 个应用程序的捆绑 ID。
当我跑
curl -i https://example.com/apple-app-site-association
Run Code Online (Sandbox Code Playgroud)
或者
curl -i https://example.com/.well-known/apple-app-site-association
Run Code Online (Sandbox Code Playgroud)
我有以下结果:
HTTP/2 200
content-type: application/pkcs7-mime
content-length: 156
date: Wed, 18 Dec 2019 03:08:15 GMT
last-modified: Wed, 18 Dec 2019 03:04:14 GMT
etag: "redacted"
x-amz-server-side-encryption: AES256
accept-ranges: bytes …
Run Code Online (Sandbox Code Playgroud) amazon-s3 amazon-web-services ios amazon-cloudfront apple-app-site-associate
即使在 48 小时后,正如苹果文档中所述,apple-app-site-association 在我的应用程序中也不起作用。我已检查过 [apple 验证工具] ( https://search.developer.apple.com/appsearch-validation-tool/ ),但它显示错误,没有与应用程序链接中的 url 关联的应用程序。这是我的 apple-app-site-association 文件的格式
{
"applinks": {
"apps": [],
"details": [{
"appID": "{team_id}.{bundle_id}",
"paths": ["*"]
}]
}
}
Run Code Online (Sandbox Code Playgroud)
我还从developer.apple.com 和XCode 功能设置中为appId 启用了关联域。
我已经尝试过[这个](iOS通用链接无法通过TestFlight工作)
还检查了苹果开发者论坛,但也找不到解决方案。