Shortcuts
PWA shortcuts provide quick access to key features of your app directly from the app icon. When users long-press (mobile) or right-click (desktop) your installed PWA icon, they see a menu of shortcuts that take them directly to specific parts of your application.

Overview
Shortcuts enhance user engagement by making your PWA's most important features instantly accessible without launching the full app first.
Key benefits:
Direct access to frequently used features
Improved user engagement and retention
Professional app-like experience
Platform-native shortcut menus
Support for custom icons per shortcut
Translatable names and descriptions
Browser/Platform Support:
Android (Chrome)
✅ Full
Long-press app icon
Windows (Chrome/Edge)
✅ Full
Right-click app icon or Start menu
macOS (Chrome/Edge)
✅ Full
Right-click dock icon
Linux (Chrome)
✅ Full
Right-click app icon
iOS/iPadOS
❌ Not supported
-
Safari (macOS)
❌ Not supported
-
Limitations:
Maximum of 10 shortcuts per app (platform limit, though 4-5 is recommended)
Not available on iOS/Safari
Shortcuts don't work if app not installed
Basic Configuration
Simple Configuration
Complete Configuration
Configuration Parameters
name Parameter (Required)
The name parameter defines the full name of the shortcut displayed to the user. It should be descriptive enough to communicate the action clearly.
Best Practices:
Be Descriptive: "Add to Favorites" > "Add"
Be Concise: Keep to 2-4 words when possible
Use Action Verbs: "Create", "View", "Search", "Open"
Be Consistent: Use similar language across all shortcuts
Avoid Jargon: Use simple, universally understood terms
Translation Support:
The name parameter supports Symfony translations:
short_name Parameter (Optional)
The short_name is a concise version of name, used when space is limited on smaller screens or in condensed UI.
Guidelines:
Maximum: 12 characters recommended
Omit articles ("the", "a", "an")
Use abbreviations if clear (e.g., "Msgs" for "Messages")
Still should be understandable on its own
description Parameter (Optional)
The description provides additional context about what the shortcut does. This may be shown in some UI contexts or used for accessibility.
Best Practices:
Keep to 1-2 sentences
Explain the benefit or outcome
Don't just repeat the name
Include keywords for accessibility
url Parameter (Required)
The url parameter specifies where the user navigates when activating the shortcut. It supports multiple formats.
Simple String (Relative Path)
Symfony Route Name
Route with Parameters
Absolute URL
Path Type Reference
The path_type_reference option controls URL generation format:
Path Type Reference Values:
0: Absolute URL (e.g.,https://app.com/foo/bar)1: Absolute path (e.g.,/foo/bar)2: Relative path (e.g.,../bar)3: Network path (e.g.,//app.com/foo/bar)
icons Parameter (Optional, Recommended)
Icons make shortcuts visually identifiable and more user-friendly. Each shortcut can have one or more icons in different sizes.
Icon Requirements:
Recommended size: 96×96 pixels (minimum)
Additional sizes: 192×192, 256×256 for higher DPI displays
Format: PNG (preferred), JPEG, WebP, SVG
Purpose:
"any"(default) or"maskable"
See the Icons documentation for complete icon configuration options.
Complete Use Cases
Use Case 1: Task Management App
Use Case 2: E-Commerce App with Translated Shortcuts
Use Case 3: News/Media App
Use Case 4: Social/Communication App
Platform-Specific Behavior
Android (Chrome)
Access: Long-press the app icon on home screen or app drawer
Behavior:
Shows up to 4-5 shortcuts in the context menu
Shortcuts appear below app info and uninstall options
Icons are displayed next to each shortcut name
Tapping a shortcut opens the app to that URL
Best Practices:
Use clear, concise names (3-4 words max)
Provide 96×96 icons for sharp display
Order by importance (most used first)
Windows (Chrome/Edge)
Access: Right-click installed app icon on Desktop, Start Menu, or Taskbar
Behavior:
Shortcuts appear in Windows Jump List
Shows shortcut name and icon
Can pin shortcuts to jump list
Integrates with Windows shell
Best Practices:
Use descriptive
short_namefor limited spaceProvide 96×96 and 192×192 icons
Limit to 5-6 most important shortcuts
macOS (Chrome/Edge)
Access: Right-click app icon in Dock or Applications folder
Behavior:
Shortcuts appear in macOS context menu
Shows icon and name
Similar to native app shortcuts
Limited to menu space available
Best Practices:
Short, clear names work best
Provide high-DPI icons (192×192)
Follow macOS naming conventions
Linux (Chrome)
Access: Right-click app icon
Behavior:
Shows in desktop environment's context menu
Behavior varies by DE (GNOME, KDE, etc.)
Icon display depends on theme
Icon Design Guidelines
Recommended Sizes
Design Principles
Simple and Clear
Use simple, recognizable symbols
Avoid text in icons (use icon graphics only)
High contrast for visibility
Consistent Style
Match your app's icon style
Use same color palette
Consistent line weights
Action-Oriented
Icon should represent the action
Use universal symbols when possible
Example: "+" for create, magnifying glass for search
Accessibility
Sufficient contrast ratios
Don't rely solely on color
Test at small sizes
Creating Shortcut Icons
Using Design Tools:
Using Icon Libraries:
Using ImageMagick (resize existing icons):
Testing Shortcuts
1. Verify Manifest
Check that shortcuts are correctly included in the manifest:
Expected output:
2. Browser DevTools
3. Test on Android
4. Test on Windows
5. Test on macOS
6. Test Translations
For multilingual apps:
Best Practices
1. Quantity
Recommended number: 3-5 shortcuts
2. Prioritization
Order shortcuts by importance and frequency of use:
3. Naming Consistency
4. URL Scope
Ensure shortcut URLs are within your app's scope:
5. Analytics Integration
Track shortcut usage in your application:
6. Icon Consistency
Use consistent visual style across all shortcut icons:
Common Issues
1. Shortcuts Not Appearing
Problem: Shortcuts menu doesn't show when right-clicking/long-pressing app icon
Solutions:
2. Icons Not Displaying
Problem: Shortcut names appear but icons don't show
Solutions:
3. Wrong URL Opens
Problem: Clicking shortcut opens wrong page or shows 404
Solutions:
4. Translations Not Working
Problem: Shortcut names show translation keys instead of translated text
Solutions:
5. Too Many Shortcuts
Problem: Only first few shortcuts appear
Solutions:
Troubleshooting Checklist
Before deploying with shortcuts:
Related Documentation
Icons - Icon configuration for shortcuts
Translations - Localizing shortcut names
Application Information - Manifest configuration
Symfony Routing - Route configuration
Resources
MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/Manifest/shortcuts
Web.dev: https://web.dev/app-shortcuts/
Chrome Developers: https://developer.chrome.com/docs/capabilities/web-apis/app-shortcuts
Symfony Routing: https://symfony.com/doc/current/routing.html
PWA Builder: https://www.pwabuilder.com/ - Test and validate shortcuts
Last updated
Was this helpful?