Name and Short Name in PWA Manifests
You'll learn how to define both a full display name and a short name for your Progressive Web App so it appears correctly across different screen sizes and launcher contexts.
Why Two Name Fields?
Your PWA needs to look professional everywhere it appears—from the home screen icon label to the app launcher, task switcher, and splash screen. But space is limited, especially on mobile home screens. That's where name and short_name come in.
Think of it like your full legal name versus a nickname. You use your full name on official documents, but a shorter version when space is tight or informality is appropriate.
The Two Fields
In your manifest.json, you define:
{
"name": "My Amazing Progressive Web Application",
"short_name": "MyApp"
}
name: The full, official name of your app (up to ~45 characters recommended). Used on splash screens, app installation prompts, and where space permits.short_name: A shorter version (12 characters or fewer is ideal). Used under home screen icons where space is extremely limited.
Length Guidelines
On most Android devices, home screen labels truncate around 10-12 characters. If your short_name is too long, it gets cut off with an ellipsis: "MyAmazin..." which looks unprofessional.
If short_name is omitted, browsers fall back to name, which almost always gets truncated on home screens. Always provide both.
Practical Example
{
"name": "Weather Forecast Dashboard",
"short_name": "Weather"
}
Users see "Weather Forecast Dashboard" during installation, but just "Weather" under their home screen icon.
Key Takeaway: Use name for your full app title (under 45 characters) and short_name for a concise version (12 characters max) to ensure your PWA displays properly across all contexts without truncation.