App Clip is a small part of your app that provides unique information that best suits a task or situation. App Clip Code helps people find useful information wherever they are – enabling your App Clip code when you pick it up at a restaurant, read an article or pass a local ad.
To create your App Clip code, you need to create a URL that is directly related to your content. And since codes can only contain certain characters, you need to design your URL efficiently. Here is what you need to know to create and store the URL for your application clip code.
How Application Code Code URLs Work
App Clip Codes Support URLs in the following format
https://[host][/<optional path>][?<optional query>][#<optional fragment>]
URLs must be used https
Plan, all sub-letters.
The host subcategory ASCII can contain from ‘to’ z ‘,’ ‘. And “-” characters. Host is the only room. Authority Supported part of the URL.
The rest of the URL may have zero or more destination sections, zero or more query sections and, alternatively, fractions. These sections may contain the following ASCII characters a
to the z
, A
to the Z
, 0
to the 9
And /#?=%-._,+;:&
.
Creating application clip codes
How to efficiently store URLs in your app clip code
When you create a URL, you can adjust the string length to match the character limit of the application clip code in a variety of ways.
Make it short and sweet
Above all, aim to keep your URLs as short and concise as possible. URLs with fewer characters, paths and queries have a better chance of matching the application clip code.
We recommend using a short hostname with as few subdomains as possible and also removing it www Subdomain as much as possible. If possible, you may want to leave the following ‘/’ character at the end of the URL. for instance, https://www.example.com/
It can be changed to. https://example.com
.
If you plan to use a subdomain, consider using it appclip
Specify App Clip-Based URLs for App Clip Codes. This unique subdomain is efficiently compact and allows URLs to have short paths and queries, minimizing the possibility of conflict with an action unrelated to your website.
Adding this subdomain is optional, but if you choose to use it, it should be viewed as the first subdomain of the URL host: https://appclip.example.com
.
Optimize for compression
Consider using the minimum number of characters needed to uniquely identify the property in your URLs, as UUIDs reduce compression efficiency.
Also, replace the long query string with string names and values to help compress names and values. For example, you can change argument names to abbreviated names and values to list numbers, such as last https://example.com/?status=view
It can be configured as https://example.com/?p=0
.
Using decimal numbers as query values can lead to better compression of the URL.
Choose your words carefully
App Clip Codes provide more effective URL encoding for specific words in the URL path section, e.g. account
, app
, download
, shop
, upload
, visit
, More. Consider using these as much as possible to improve your encoding and compression. You can see the full glossary in the Apple documentation.
Coding the URL in the application clip code
In addition, a URL containing a zero or one component of a list of special words and a URL containing zero or more query elements from the ordered argument names p, p1, p2, etc. are more likely to be included in the application clip code. Some examples are:
https://appclip.example.com/shop
https://appclip.example.com/shop?p=123
https://appclip.example.com/?p=123
https://appclip.example.com/?p=123&p1=4632
Resources
Creating App Clip Codes with App Store Connect
Creating App Clip Codes with App Clip Generator
Browse application clips
Help people know the exact parts of your app the moment they need it. We’ll explain how to design and build an app clip – a small part of your app that focuses on a specific task – and make it easily accessible. Learn how to focus your app clip short and fast.
Configure and connect your app clips
App Clips are small application components that provide a fast, direct experience and help people find what they are looking for at the right time. Learn how to call an app clip with real-world experiences such as App Clip Code, NFC and QR Codes, or have it digitally viewed with apps like Maps or …