When it comes to features, Edge has the one critical item that always kept me crawling back to Chrome. If you are on a webpage, you can easily turn it into an app, by clicking the three dots in the top right and clicking install app. This is huge, as it allows me to turn Google Calendar, Tweetdeck, and a few other pages into applications on my desktop that makes my workflow, a lot easier.
we should definitely whitelist all Chrome based browsers @falco
We want to get this working, but the last time we tried with the “You are offline” page wasn’t a great experience. Also we had a lot of suggestions about making reading Discourse possible when you are offline.
The current changes only affect GET requests, so it will make you able to use the composer, if you ever did it while online.
Discourse already keeps submitting a topic in a persistent “Saving” blue bar, and this doesn’t touch that request, so it should keep the current behavior.
However, getting Discourse to work totally in write mode while offline would require a lot more work and be a long term project involving multiple people. That is not the scope here, which is just enabling installs in Desktop.
It’s in the same branch as always here. You could deploy from that branch but it is a lot behind master currently. I can rebase it to master, but I don’t recommend messing with this until it’s proven stable here.
Another cool thing, if you try to use the pwa with a cold cache:
Chrome 76 è stato lanciato ieri con il pulsante di invito all’azione Installa nella barra degli indirizzi, e l’ultima versione di Discourse funziona con esso immediatamente.
C’è un modo per nascondere l’icona nella barra degli indirizzi, sia da Discourse che da Chrome? Preferisco usare solo il browser, quindi non vedo il senso di tenere quell’icona visibile per sempre.
Ho cercato su Google lato Chrome, ma non ho trovato nulla. Quindi immagino che lo chiederò direttamente a loro.
È qualcosa che potrebbe essere teoricamente ignorato (ad esempio tramite localStorage) o nascosto permanentemente in base a un’impostazione di Discourse? Chiedo perché non so se Chrome rileva automaticamente se il sito web è compatibile come PWA o se c’è qualche flessibilità dal vostro lato per offrire l’opzione solo in determinate condizioni.
Per chiunque altro sia interessato, c’è un’impostazione in chrome://flags chiamata App Banners che puoi impostare su Disabled per rimuovere l’icona nella barra degli indirizzi.
EDIT: In realtà, l’impostazione rilevante sembra essere Desktop PWAs installabili dall'omnibox.
Solo per informazione, oggi su Chrome su Linux (Ubuntu) ho persino ricevuto un popup che mi proponeva di “installare” Discourse come un’app. Qualcosa di simile ai popup quando i siti web chiedono di autorizzare le notifiche.
Sta cercando Chrome di spingere per questo tipo di “installazioni”?