http:// and https:// URLs open in your Median app instead of the mobile browser when users tap them in email, SMS, or other apps. When configured, they provide a smoother, more native experience.
Enable Universal Links, App Links, and optional URL schemes in Median App Studio. When a user opens a matching link on a device, the configured link type determines whether the URL opens in your app instead of the mobile browser.
Web Credentials (iOS only) lets your app offer the passwords and passkeys that users saved for your website, so they can sign in without typing them again.
How deep linking works
Configure Universal Links (iOS) or App Links (Android) in Median App Studio. Once configured, links that match the domains you specify open in the app instead of the browser. iOS and Android only trust your app with a domain after they find a file hosted on that domain, so setup has two parts: add your domains in App Studio, then host the files App Studio generates.Best practice
Add both your root domain and thewww host (for example, median.co and www.median.co) so coverage matches how links are shared.
Set up your domains
1
Configure your domains
In App Studio, go to Link Handling → Universal Links / Deep Links / Web Credentials and add each domain your links use, such as
example.com. Enter the domain only, without https://, a port, or a path.For each domain, select what it’s used for. New domains start with Universal Links selected, and each domain needs at least one option.For Android, set Android link type to App Links or Web Links. See App Links configuration.
2
Host the file on your domains
Open the iOS and Android tabs. Copy or download each file and upload it to the path App Studio shows, over HTTPS with no redirects.
- iOS: Upload the same
apple-app-site-associationfile to every domain. Replace<Team ID>with your Apple Team ID first. - Android: With App Links, upload
assetlinks.jsonto each domain that uses Universal Links. Your app’s signing fingerprint is added to the file after your first Android build. Web Links need no file.
3
Rebuild your app
Your domains are added to your app when it’s built, so rebuild after you change them. Then check your setup with the Deep Linking Validator.
Use your AI agent
Use the Median MCP with your AI agent to add domains for Universal Links and Deep Links in your app. See Median MCP server to set it up.
You still host the association files on each domain, as described in the steps above.Platform configuration
Android
Android uses only the domains that have Universal Links selected. Domains that only use Web Credentials aren’t added to your Android app and don’t needassetlinks.json.
App Links configuration
Tapping a deep link on Android may show a disambiguation dialog so the user can pick your app or a browser. You can enable App Link verification so matching links open directly in your app. Host a Digital Asset Links file on your site, typically at:/.well-known/assetlinks.json
That file proves you control the domain. See Verify Android App Links.
Host assetlinks.json correctly before you publish; otherwise verification can fail. To verify the file, use Google’s Statement List Generator and Tester: enter your app package name and the SHA-256 fingerprint referenced in assetlinks.json, then run Test Statement. Repeat for each hostname you add in App Studio.
Example: assetlinks.json
iOS
Universal Links configuration
On iOS, the user may see a confirmation step to open a Universal Link in your app. You must host an Apple App Site Association (AASA) file at:/apple-app-site-association or /.well-known/apple-app-site-association
See Apple’s documentation on Universal Links and supporting associated domains in Xcode.
Requirements:
- Create an explicit app ID in your Apple Developer account for your app’s bundle ID.
- In the provisioning profile for that app ID, enable Associated Domains under App Services. Universal Links and Web Credentials both need it.
- Include your app ID (with TEAMID from your Apple Developer account) in the AASA file on your domain.
Example: apple-app-site-association
Web Credentials configuration
Web Credentials lets iOS offer the passwords and passkeys that users saved for your website inside your app. Users sign in with AutoFill instead of typing their details, and passkeys created on your website work in your app. See Apple’s Shared web credentials documentation. When a domain uses Web Credentials, theapple-app-site-association file App Studio generates includes a webcredentials block with your app ID. App Studio adds the applinks block only when a domain uses Universal Links, and the webcredentials block only when a domain uses Web Credentials.
Example: apple-app-site-association with Web Credentials
URL scheme protocol
Custom URL schemes are an advanced option: app-specific link formats (for example,youruniquestring://example.com/path) that open content in your mobile app instead of a browser. They are commonly used for mobile authentication redirects and advanced in-app navigation.
How URL schemes work on Android and iOS
Define a unique scheme string that does not collide with other apps. Standard web URLs usehttp:// or https://; a custom scheme might look like:
youruniquestring://
Once configured, your app can recognize URLs such as:
youruniquestring.https://example.com/path
If the app is installed and the user taps a matching link, the system launches your app and opens the path (for example, https://example.com/path) inside it.
Example use case
If your scheme identifier isyouruniquestring, links such as the following can trigger deep linking:
youruniquestring.http://example.com/loginyouruniquestring.https://example.com/dashboard