I´m having a website my client wants to add to his home screen on android, so when I´m doing this (with chrome), chrome/android asks to provide/change the displayed name. In my case it is prefilled with "App".
The label of the popup translated to english is "Add to Homesceen"
But when I do the same with for-example stackoverflow I get it prefilled with a "name" probably the site title.
so what I tried:
<meta name="application-name" content="name-X">
with no effect, also tried <meta name="apple-mobile-web-app-title" content="name-X">
for any help thanks in advance :)
To create a desktop shortcut to a website using Google Chrome, go to a website and click the three-dot icon in the top-right corner of your browser window. Then go to More tools > Create shortcut. Finally, name your shortcut and click Create. Open the Chrome web browser.
* At the bottom of the new tab page, make sure "Bookmarks" is chosen. * Navigate to the appropriate bookmarks folder, then press and hold the bookmark that you want to add as a shortcut to the home screen. * A window will pop up with various options. Choose "Add to Home Screen".
You're looking for a PWA JSON manifest. It will tell your browser about your app.
As you can see in the link above, you shall provide short_name and/or name attribute. Don't forget to link your manifest:
<link rel="manifest" href="/manifest.json">
Example:
{
"short_name": "Maps",
"name": "Google Maps",
"icons": [
{
"src": "/images/icons-192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "/images/icons-512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": "/maps/?source=pwa",
"background_color": "#3367D6",
"display": "standalone",
"scope": "/maps/",
"theme_color": "#3367D6"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With