<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:universallink.page</string>
</array>
Example 2
| { | |
| "data": [ | |
| { | |
| "appId": "org.mozilla.ios.Fennec", | |
| "appName": "firefox_ios", | |
| "application": "org.mozilla.ios.Fennec", | |
| "arguments": {}, | |
| "branches": [ | |
| { | |
| "feature": { |
| { | |
| "data": [ | |
| { | |
| "appId": "org.mozilla.ios.Fennec", | |
| "appName": "firefox_ios", | |
| "application": "org.mozilla.ios.Fennec", | |
| "arguments": {}, | |
| "branches": [ | |
| { | |
| "feature": { |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| /** | |
| * Module doing most of the content process work for the password manager 2. | |
| */ | |
| // Disable use-ownerGlobal since LoginForm doesn't have it. | |
| /* eslint-disable mozilla/use-ownerGlobal */ |
| { | |
| "permissions": {}, | |
| "data": [{ | |
| "schemaVersion": "1.8.0", | |
| "slug": "ios-test", | |
| "id": "ios-test", | |
| "arguments": {}, | |
| "application": "org.mozilla.ios.Fennec", | |
| "appName": "firefox_ios", | |
| "appId": "org.mozilla.ios.Fennec", |
| // AppDelegate | |
| func application(_ application: UIApplication, | |
| continue userActivity: NSUserActivity, | |
| restorationHandler: | |
| @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { | |
| // This will allow us to check if we are coming from a universal link | |
| // and get the url with its components | |
| // The activity type (NSUserActivityTypeBrowsingWeb) is used |
| //SceneDelegate | |
| func scene(_ scene: UIScene, continue userActivity: NSUserActivity) { | |
| // This will allow us to check if we are coming from a universal link | |
| // and get the url with its components | |
| // The activity type (NSUserActivityTypeBrowsingWeb) is used | |
| // when continuing from a web browsing session to either | |
| // a web browser or a native app. Only activities of this | |
| // type can be continued from a web browser to a native app. | |
| guard userActivity.activityType == NSUserActivityTypeBrowsingWeb, |
| { | |
| "applinks": { | |
| "apps": [], | |
| "details": [ | |
| { | |
| "appID": "9JA89QQLNQ.com.apple.wwdc", | |
| "paths": [ "/wwdc/news/", "/videos/wwdc/2015/*"] | |
| }, | |
| { | |
| "appID": "ABCD1234.com.apple.wwdc", |
| { | |
| "applinks": { | |
| "details": [ | |
| { | |
| "appIDs": [ "ABCDE12345.com.example.app", "ABCDE12345.com.example.app2" ], | |
| "components": [ | |
| { | |
| "#": "no_universal_links", | |
| "exclude": true, | |
| "comment": "Matches any URL with a fragment that equals no_universal_links and instructs the system not to open it as a universal link." |