Currently, this is only available for websites who sign up to the trial, and only on Windows and Mac OS using Google Chrome. (Meta has this enabled on Light and Dark Themes).
The huge omission here is that there is no back/forward or reload button. Kind of wish we had some minimal responsive PWA panel that we add when we detect PWA cause you can figure this out this is going on from JavaScript.
You can also detect it from CSS, here is one thing I added as a theme-component to the Dark Theme here in Meta:
@media all and (display-mode: standalone) {
//blink-based browsers (don't work on safari, which exposes a JS only API for this)
::-webkit-scrollbar {
background: $secondary;
}
::-webkit-scrollbar-thumb {
background: $header_primary-medium;
}
::-webkit-scrollbar-corner {
background: $secondary;
}
//firefox
body {
scrollbar-color: $header_primary-medium $secondary;
}
}
We added support for the badging API back in early 2019, but we don’t call it when the app is closed at the moment as it wasn’t supported back then.
Falco, existe a possibilidade de haver um comportamento de piscar ou alteração da cor de fundo se o valor da notificação mudar? (Cancelado por um clique aberto) Não estou familiarizado com a API aqui.