Feature request: Allow blacklisted URLS in apple-app-site-association file
| Originator: | bryan | ||
| Number: | rdar://23363439 | Date Originated: | 2015-11-02 |
| Status: | Open | Resolved: | n/a |
| Product: | iOS | Product Version: | 9.1 |
| Classification: | Feature Request | Reproducible: | n/a |
Summary:
It’s wonderful that apple-app-site-association allows for wildcard and whitelisting, but we’d like to be able to blacklist parts of our site from universal links.
Here’s the use case for Khan Academy: we have videos, exercises, articles, and programming challenges on our site. We have a URL system for identifying which content item is at a particular link:
*/v/* is a video
*/e/* is an exercise
*/a/* is an article
*/p/* is a programming challenge
We have support on both our iPad and iPhone apps for videos and articles, but we don’t support exercises on iPhone, and we don’t support programming challenges on either device.
To accomplish this, we’d like to be able to blacklist URLs that contain */p/* or */e/*
Ideally, this is what our apple-app-site-association file would be:
{
"applinks": {
"apps": [],
"details": [
{
"appID": "ABCD1234.org.khanacademy.Khan-Academy",
"paths": [
"*/v/*",
"*/a/*",
"/math/*",
"/science/*",
"/economics-finance-domain/*",
"/humanities/*",
"/computing/*",
"/test-prep/*",
"/partner-content/*",
"/talks-and-interviews/*",
"/coach-res/*"
],
"blacklisted-paths": [
"*/e/*",
"*/p/*"
]
}
]
}
}
Instead, what we have today is an apple-app-site-association file that allows exercise links, and shows an error message in our iPhone app when it’s opened to an exercise.
Steps to Reproduce:
...not really applicable here, but:
Have a website that contains lots of content, most of which is supported in the app but not all.
Expected Results:
I'd expect that I would be able to blacklist a particular URL pattern
Actual Results:
We're unable to blacklist a URL pattern, so we wound up having to allow potentially non-supported links to open our app, and present a UIAlertView for that unsupported content.
Version:
iOS 9.1
Notes:
Configuration:
n/a
Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!