Skip to main content
Topic: Chrome shortcut  (Read 1891 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Chrome shortcut

I've noticed that with ElkArte, when creating a shortcut with Chrome app (Android) the shortcut opens in own window and not in the browser.

I'd like to know what coding in ElkArte causes this, as I'd like to see if can use it on regular sites.

Re: Chrome shortcut

Reply #1

I don't think that was something Elk did  :undecided:  I'll have to try it myself !

 

Re: Chrome shortcut

Reply #2

Found what it is.

Make site a PWA

Make a file in site root: manifest.json:

Code: [Select]
{
  "background_color": "navy",
  "description": "Site Description",
  "display": "standalone",
  "icons": [
    {
      "src": "images/app_logo.png",
      "sizes": "200x200",
      "type": "image/png"
    }
  ],
  "name": "Site name",
  "short_name": "App Name",
  "start_url": "https://www.domain.tld/"
}

Add to main index page: (Or index.template.php)

Code: [Select]
<link rel="manifest" href="https://www.domain.tld/manifest.json" />

Re: Chrome shortcut

Reply #3

PWA are more than just an icon IIRC?
Though I've been a bit sleepy on mobile stuff (and other stuff too) for quite a while. :-\
Bugs creator.
Features destroyer.
Template killer.