bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

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

Open pmac opened this issue 1 year ago • 10 comments

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.

pmac avatar Nov 06 '24 22:11 pmac

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"
          }
        ]
      }
    ]
  }
}

blandthorn avatar Nov 06 '24 22:11 blandthorn

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)

stevejalim avatar Nov 06 '24 23:11 stevejalim

Thank you @stevejalim — 

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

blandthorn avatar Nov 06 '24 23:11 blandthorn

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?

stevejalim avatar Nov 07 '24 00:11 stevejalim

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 avatar Nov 07 '24 15:11 pmac

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

nbhasin2 avatar Nov 07 '24 16:11 nbhasin2

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.

pmac avatar Nov 07 '24 17:11 pmac

@nbhasin2 Do you recall where we ended up on this? https://www.mozilla.org/.well-known/apple-app-site-association is up and https://blog.mozilla.org/.well-known/apple-app-site-association exists, too.

stevejalim avatar Sep 09 '25 16:09 stevejalim

FYI just a heads up that the https://blog.mozilla.org/en/products/firefox/firefox-tips/online-shopping-tips/ redirects to a different path not covered by the association (now under mozilla-new-products) so make sure it works as intended for you still (or, if that's even needed still)

janbrasna avatar Sep 09 '25 17:09 janbrasna

FYI support for applinks:blog.mozilla.org entitlements was removed from FxiOS in FXIOS-10299:

  • https://github.com/mozilla-mobile/firefox-ios/pull/24196

So the addition mentioned in this ask is no longer relevant / won't have any impact.

janbrasna avatar Oct 28 '25 23:10 janbrasna