From b1046d56f772a8b1023faf6d7aa55218cd4c25d0 Mon Sep 17 00:00:00 2001 From: IagoLast Date: Thu, 25 Jan 2024 12:53:44 +0100 Subject: [PATCH] Update applinks json file The example given in the guide is not working anymore. This PR replaces the example with an official example taken from the apple developer website. And links to it. Should we do the same for V6 ? --- .../version-v5/main/guides/deep-links.md | 41 ++++++++++++++----- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/versioned_docs/version-v5/main/guides/deep-links.md b/versioned_docs/version-v5/main/guides/deep-links.md index e1b2a4b74..1b85ca481 100644 --- a/versioned_docs/version-v5/main/guides/deep-links.md +++ b/versioned_docs/version-v5/main/guides/deep-links.md @@ -206,20 +206,41 @@ Next, create the site association file (`apple-app-site-association`). An example of the `apple-app-site-association` file is below. Be sure to replace `TEAMID.BUNDLEID` with your own IDs (example: `8L65AZE66A.com.netkosoft.beerswift`). + + ```json -{ - "applinks": { - "apps": [], - "details": [ - { - "appID": "TEAMID.BUNDLEID", - "paths": ["*"] - } - ] - } +"applinks": { + "details": [ + { + "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ], + "components": [ + { + "#": "no_universal_links", + "exclude": true, + "comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link" + }, + { + "/": "/buy/*", + "comment": "Matches any URL whose path starts with /buy/" + }, + { + "/": "/help/website/*", + "exclude": true, + "comment": "Matches any URL whose path starts with /help/website/ and instructs the system not to open it as a universal link" + }, + { + "/": "/help/*", + "?": { "articleNumber": "????" }, + "comment": "Matches any URL whose path starts with /help/ and that has a query item with name 'articleNumber' and a value of exactly 4 characters" + } + ] + } + ] } ``` +Read more [in the apple docs](https://developer.apple.com/documentation/bundleresources/applinks) + Next, upload the file to your web site (hosted on HTTPS), then validate that it's configured correctly using Apple's tool [here](https://search.developer.apple.com/appsearch-validation-tool/). The URL should follow this format: https://beerswift.app/.well-known/apple-app-site-association ### Add Associated Domain