Universal links are Apple’s technology for creating a seamless and integrated experience between the web and mobile apps on iOS and other Apple platforms. With universal links, developers can ensure that users who tap a link are automatically taken to the relevant section of an app if it is installed, or to a web page if the app is not available. This creates a more coherent user experience that avoids unnecessary detours and ensures that users reach the desired content quickly and efficiently.
Universal links work by using a combination of ordinary HTTPS links and the device’s operating system to decide where the link should take the user. When a user taps a universal link, the device checks whether the associated app is installed. If the app is available, it opens directly at the specific page or function indicated in the link. If the app is not installed, the link opens in a web browser, which ensures that the user always gets access to the desired content.
This technology benefits not only users but also developers and businesses, as it improves engagement and retention by delivering a more intuitive and frictionless experience. Universal links are therefore an important component of modern iOS app development, supporting seamless integration between web and mobile; on Android, the corresponding technology is called App Links.
Universal links are a technology that enables a seamless transition between the web and apps by connecting a URL directly to a specific function or page in an iOS application. When a user taps a link that supports universal links, the corresponding app opens automatically if it is installed, which provides a more integrated and user-friendly experience. The technology is designed to improve user engagement and conversion rates by eliminating the need for manual detours through the web browser. Universal links are particularly useful in marketing campaigns, where they ensure that users reach the desired content quickly and efficiently, while maintaining a high degree of security and reliability.
More about Universal Links
Universal links are a technology that enables a seamless and direct connection between web content and mobile applications on Apple’s platforms. This functionality allows users to open specific pages in an app directly from a link, without having to go through a web browser first. Universal links are particularly useful in applications where a frictionless user experience and fast access to content are crucial, such as e-commerce, social media and news apps.
Technically, universal links work by combining ordinary HTTPS links with an association file hosted on the website’s server. When a user taps a link, the system checks whether an associated app is installed on the device. If the app is present, it opens directly at the relevant content. If not, the link opens in a web browser. This mechanism ensures a seamless transition between web and app, which improves the user experience markedly.
Universal links can work in three different scenarios, each supporting different types of interaction:
Opening the app directly: When a user taps a universal link and the associated app is installed, the app opens directly at the specific content. This could, for example, be a product detail page in a shopping app or an article in a news app. This function is often used to improve engagement and retain users in the app.
Fallback to the web: If the app is not installed, the link opens in a web browser, where the user can see the corresponding content. This ensures that the user always has access to the information, whether or not the app is installed, which increases the accessibility of the content.
App installation flow: If the app is not installed, the web page that the link opens can direct the user to the app’s page in the App Store, for example with a Smart App Banner, where the app can be downloaded. Universal links do not do this by themselves, and passing the original content on after installation requires a deferred deep linking solution. This can increase the number of app installations by offering an easy route to the app when the user is interested in the content.
One of the greatest strengths of universal links is their ability to improve the user experience by eliminating unnecessary steps between web and app. By ensuring that users can access content directly in the app, friction is reduced and engagement increases. In addition, universal links are secure, as a domain can only open an app that the domain owner has declared in the association file and that has declared the domain in turn, which prevents other apps from claiming the links.
Universal links require relatively little maintenance, as they are based on standard HTTPS links already used in web content. This makes them fairly easy to implement and maintain, while offering a robust solution for connecting web and app. In addition, they can be configured to support complex navigation scenarios, which makes them a flexible tool for developers.
In practice, universal links have changed the way apps and web content are used together. They are used in marketing campaigns, where links in emails or on social media can lead directly to app content, which increases conversion rates. They are also used with push notifications, where users can tap a notification and be taken directly to relevant content in the app.
In summary, universal links are a technology that combines simplicity, efficiency and security in a solution that enables users to move between web and app in an intuitive and seamless way. Their ability to improve the user experience and increase engagement makes them an important tool in modern app development, where fast and direct interactions are required.
Frequently asked questions about Universal Links
What are universal links, and how do they work?
Universal links are a technology that enables iOS devices to open specific content in an app directly from a link, without going through a web browser. When a user taps a universal link, iOS automatically determines whether the app associated with the link is installed on the device. If the app is installed, it opens directly at the relevant content. If the app is not installed, the link opens in Safari, where the user can access the content via the web version.
Universal links work by combining the app’s associated domains with a file called “apple-app-site-association”, which is placed on the web server. This file contains information about which URLs should open in the app and which should open in the browser. iOS downloads and checks this file, typically when the app is installed or updated, so that it knows how links should be handled when they are tapped.
Compared with earlier methods such as URL schemes, which any app could register and which could therefore lead to security risks, universal links are more secure and user-friendly. They require no special set-up on the user’s part and work smoothly, which gives a better user experience by ensuring that content always opens in the most appropriate context.
How are universal links implemented in an iOS app?
Universal links in iOS apps are a powerful feature that makes it possible to open specific parts of an app directly from a URL, which creates a seamless user experience between web and app. Universal links are activated when a user taps a link registered to the app, and if the app is installed, it opens automatically at the relevant page. If the app is not installed, the link opens in Safari, which ensures that the user always gets access to the content.
To implement universal links, an Apple App Site Association (AASA) file must first be created and placed on the web server. This file contains information about the domains and paths that the app can handle. iOS fetches this file, via Apple’s content delivery network in current versions, to determine whether a link should open the app or not.
In addition, the app must be configured to handle universal links by adding the relevant domains in the app’s Xcode project under “Signing & Capabilities”. Here, the “Associated Domains” capability is enabled, and the domains specified in the AASA file are added with the applinks: prefix. Finally, the app must handle the incoming URL in its code and show the right content. This ensures that the app is correctly registered to receive links from the specified domains.
Compared with earlier methods such as URL schemes, which required manual handling of links and could lead to security problems, universal links are far more secure and user-friendly. They require no user interaction to open the app and degrade gracefully to the website when the app is not installed, which makes them an essential feature of modern iOS apps.
What advantages do universal links offer over traditional URL schemes?
Universal links offer a number of advantages over traditional URL schemes, especially in terms of user experience and security. Universal links work by connecting web addresses directly to content in an app, which means that when a user taps a link, the relevant content opens directly in the app if it is installed. This eliminates the need to go through a web browser first, which creates a more seamless and efficient user experience.
In addition, universal links are more secure than traditional URL schemes, because the connection between the domain and the app is verified: the website must declare the app in its association file, and the app must declare the domain. Since the links are ordinary HTTPS addresses, they also work as normal web links. This reduces the risk of phishing attacks and other forms of misuse that can arise when another app registers the same URL scheme.
Compared with URL schemes, which can be vulnerable to hijacking by other apps, universal links offer a more robust and reliable solution that both improves security and optimises the user experience by ensuring that users always land on the intended content in the app. This makes universal links the preferred choice for app developers who want to deliver a secure and smooth experience for their users.
How can it be tested whether universal links work correctly?
To ensure that universal links work correctly, it is important to test them thoroughly in different scenarios.
First and foremost, it must be confirmed that the app is correctly configured to handle universal links. This means that an “apple-app-site-association” file has been created on the server containing the necessary information about the links the app can handle. Once this file is correctly placed and accessible over HTTPS, testing of the links can begin.
A simple test is to send a link via email or a messaging app, or place it in the Notes app, and then tap it on an iOS device. Links typed directly into Safari’s address bar, or links within the same domain, do not open the app, so they are not a reliable test. If the app opens directly at the specific content, universal links are working as expected. It is also important to test how the links behave when the app is not installed. In this case, the link should open in a web browser and show the corresponding web content.
Compared with other methods of opening app content, such as URL schemes, universal links are more secure and user-friendly, as they do not require the user to choose manually to open the app. They are also more reliable, as they still work when the app is not installed by falling back to web content.
What is the apple-app-site-association file?
The apple-app-site-association file, often abbreviated AASA, is a small JSON file that sits on a website and tells iOS which apps may open links to the domain. The file is placed in the .well-known folder on the domain and must be retrievable via HTTPS without redirects.
The file specifies the app’s ID, which consists of the team ID and the app’s bundle ID, and which paths on the website should open in the app. At the same time, the app must have the domain added under Associated Domains in Xcode. Once both are in place, iOS can confirm the connection between website and app, and links open directly in the app.
How can universal links improve the user experience in a mobile app?
Universal links improve the user experience in a mobile app by providing a seamless transition between web content and app content. When a user taps a link that supports universal links, the relevant content opens directly in the app if it is installed, instead of redirecting the user to a web browser. This creates a more integrated and efficient experience, as the user avoids unnecessary steps and can use the app’s full functionality.
In addition, universal links are secure and reliable, as they can only be opened by the app associated with the specific domain. This helps prevent phishing attacks and ensures that the user lands on the expected content. If the app is not installed, the link instead opens the corresponding web content, which ensures that the user always gets access to the desired information, whatever their device configuration.
Compared with traditional URL redirects, which can be slow and confusing, universal links offer a more streamlined and user-friendly experience. They work on Apple’s platforms, and together with the equivalent App Links on Android, they make it possible to offer the same experience across devices, which makes them an essential component of modern app development, where the user experience is in focus.
Universal Links for dummies
Universal links are a clever technology that allows an iPhone to open a specific app directly when a link is tapped, instead of opening a web page in the browser. Imagine receiving a message with a link to a video in a streaming app. When the link is tapped, the phone automatically opens the app and shows the video, without having to go through a web page first. This makes it quicker and easier to get to the content, because the phone knows exactly which app should be used to show it.
