Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update /.well-known/apple-app-site-association #15458

Open
pmac opened this issue Nov 6, 2024 · 7 comments
Open

Update /.well-known/apple-app-site-association #15458

pmac opened this issue Nov 6, 2024 · 7 comments
Assignees

Comments

@pmac
Copy link
Member

pmac commented Nov 6, 2024

Description

There is a need to update the file in the title to work with new changes in Firefox mobile. The new contents for this file will be pasted in the comments.

@blandthorn
Copy link

blandthorn commented Nov 6, 2024

Requested contents to be updated:

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios"
          },
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      },
      {
        "appID": "ABCD1234.com.example.otherapp",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios for another app"
          },
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL for the second app"
          }
        ]
      }
    ]
  }
}

@stevejalim
Copy link
Collaborator

Hi @blandthorn - in the comment above, some in the second object look like they might be placeholders/WIP content:
ABCD1234.com.example.otherapp as the appID and both of the comments, or at least the second one

Can you advise on what they should be, please? (Or feel free to edit the comment yourself, no worries)

@blandthorn
Copy link

Thank you @stevejalim — 

Firefox: 43AQ936H96.org.mozilla.ios.Firefox
Firefox Beta: 43AQ936H96.org.mozilla.ios.FirefoxBeta

@stevejalim
Copy link
Collaborator

stevejalim commented Nov 7, 2024

Have chatted with Brad directly about the second URL, which i couldn't find www.mozilla.org -- which was because it's a URL on blog.mozilla.org

So, I'm wondering if we can update it to this to include the hostnames:

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "https://www.mozilla.org/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios"
          },
          {
            "/": "https://blog.mozilla.org/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      },
      {
        "appID": "43AQ936H96.org.mozilla.ios.FirefoxBeta",
        "components": [
          {
            "/": "https://www.mozilla.org/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios for Firefox Beta"
          },
          {
            "/": "https://blog.mozilla.org/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips"
          }
        ]
      }
    ]
  }
}

@pmac Do you have any insight into whether adding hostnames into the paths here will be OK?

@pmac
Copy link
Member Author

pmac commented Nov 7, 2024

I think this is still being worked on by the Firefox Mobile folks. The above was just a draft but was posted here prematurely.

@pmac pmac self-assigned this Nov 7, 2024
@nbhasin2
Copy link

nbhasin2 commented Nov 7, 2024

Afaik if there are subdomain(s) then we need separate file for each. Ex.

www.mozilla.org

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios on www.mozilla.org"
          }
        ]
      },
      {
        "appID": "43AQ936H96.org.mozilla.ios.FirefoxBeta",
        "components": [
          {
            "/": "/en-US/firefox/browsers/mobile/get-ios/*",
            "comment": "Matches any URL whose path starts with /en-US/firefox/browsers/mobile/get-ios for Firefox Beta on www.mozilla.org"
          }
        ]
      }
    ]
  }
}

blog.mozilla.org:

{
  "applinks": {
    "details": [
      {
        "appID": "43AQ936H96.org.mozilla.ios.Firefox",
        "components": [
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips on blog.mozilla.org"
          }
        ]
      },
      {
        "appID": "43AQ936H96.org.mozilla.ios.FirefoxBeta",
        "components": [
          {
            "/": "/en/products/firefox/firefox-tips/online-shopping-tips/*",
            "comment": "Matches the specific test URL under /en/products/firefox/firefox-tips/online-shopping-tips on blog.mozilla.org"
          }
        ]
      }
    ]
  }
}

Edit: Added comment

@pmac
Copy link
Member Author

pmac commented Nov 7, 2024

Then we'll need a separate issue for the blog.m.o one, I guess on Bugzilla? Not sure where blog.m.o issues are filed. This repo is only about www.m.o and this team only has permissions to work on www.m.o.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants