short_name
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Theshort_name manifest member is used to specify a short name for your web application, which may be used when the fullname is too long for the available space.
In this article
Syntax
/* Short names of web apps */"short_name": "TaskPlanner""short_name": "RecipePantry"Values
short_nameA string that specifies a short version of your web app's
name.
Description
Browsers may useshort_name in place ofname when there is insufficient space to display the full name, such as on a device's home screen, in the application switcher, or in other space-constrained contexts.
Keep the following points in mind when selecting a short name for your web app:
- It should be a concise version of your app's
name. - While aiming for brevity, it should still be recognizable and meaningful.
- Consider how it will appear in space-constrained contexts.
- Follow the same guidelines for cultural sensitivity and trademark as for
name.
Examples
>Adding a short name for your web app
Consider a web app that helps users plan and log their hiking adventures. Thename has been defined asTrail Navigator. Ashort_name can be added to the manifest as follows:
{ "name": "Trail Navigator", "short_name": "TrailNav"}The app's shorter nameTrailNav is concise and is suitable for limited space contexts. It maintains a connection to the app's full name and is easy to remember.
Specifications
| Specification |
|---|
| Web Application Manifest> # short_name-member> |
Browser compatibility
See also
namemanifest member- The web app manifest for making your web app installable