mdn/content

showNotification: clarify difference between badge, icon, and image

Open

#42.499 aperta il 22 dic 2025

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Markdown (22.427 fork)batch import
Content:WebAPIarea: Notificationshelp wanted

Metriche repository

Star
 (8900 star)
Metriche merge PR
 (Merge medio 7g 3h) (147 PR mergiate in 30 g)

Descrizione

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification

What specific section or headline is this issue about?

parameters

What information was incorrect, unhelpful, or incomplete?

Currently there are 3 way that you can set images to your notification, badge, icon and also image

It's confusing to have so many option to choose from.

What did you expect to see?

I want to have a image schema of where all the bells and whistles goes where in the notification, how it's going to look like on different devices.

A real live demo would be super useful to see and test how it's going to behave.

Do you have any supporting links, references, or citations?

Do you have anything more you want to share?

No response

MDN metadata

Guida contributor