Nouvelle version de référence disponible

Découvrez ce qui a récemment été ajouté à la version de référence disponible.

La synchronisation en arrière-plan périodique vous permet d'afficher du contenu récent lorsqu'une progressive web app ou une page de service basée sur un worker est lancée. Pour ce faire, il télécharge des données en arrière-plan lorsque

  • HTML
  • JavaScript
  • CSS

Cecilia Cong

21 décembre 2024

Les raccourcis d'application permettent aux utilisateurs de lancer rapidement des tâches courantes ou recommandées dans votre application Web. L'accès facile à ces tâches partout où l'icône de l'application s'affiche améliore la productivité des

  • HTML
  • JavaScript

Francois Beaufort

18 novembre 2024

Consultez l'exemple ci-dessous pour découvrir l'expérience par défaut, qui ne fournit pas suffisamment de contexte. Pour afficher la boîte de dialogue d'installation enrichie de l'interface utilisateur au lieu de l'invite standard par défaut, ajoutez

  • HTML
  • JavaScript

Adriana Jara

14 août 2024

Badges are used to convey non-urgent information to the user. For example, they are used to indicate the status of an app, or the number of unread items. The classic way of creating an app badge is to add a number to the favicon. On modern browsers,

  • HTML
  • CSS
  • JavaScript

Thomas Steiner

5 mars 2025

Sometimes you want to let users of your app select one of their contacts to message via an email or chat application, or help them discover which of their contacts have already joined a social platform. To get contacts from the address book, you need

  • CSS
  • HTML
  • JavaScript

Thomas Steiner

5 mars 2025

To make sure your browser supports the getScreenDetails() method, first check if it exists on the window object. Then, call window.getScreenDetails() to get attached screens. Adding an event listener to adapt to changed screen details allows you to

  • JavaScript
  • CSS
  • HTML

Palances Liao

5 mars 2025

Letting the user share the website they are on is a common web apps pattern that you can find on many news sites, blogs, or shopping sites. Since linking is one of the web's super powers, the hope is to acquire traffic from users who see the shared

  • JavaScript
  • CSS
  • HTML

Thomas Steiner

5 mars 2025