Bug 280160 - Notifications API: support for the `badge` option
Summary: Notifications API: support for the `badge` option
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 18
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-22 13:44 PDT by ik
Modified: 2024-09-22 13:44 PDT (History)
1 user (show)

See Also:


Attachments
Screenshot of the same notifications on Android (with badge icon) and iOS (no badge icon) (28.51 KB, image/webp)
2024-09-22 13:44 PDT, ik
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ik 2024-09-22 13:44:37 PDT
Created attachment 472633 [details]
Screenshot of the same notifications on Android (with badge icon) and iOS (no badge icon)

MDN lists the Notifications API's `badge` option as supported in iOS Safari 16.4 but the badge icon is never shown. 

(Does iOS even support 'badge' icons?)

I used Peter Beverloo's excellent Notification Generator and some additional local testing to confirm my findings:
https://tests.peter.sh/notification-generator/

MDN compat table:
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API#browser_compatibility

MDN `badge`:
https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge

Screenshot of the same notifications on Android (with badge icon) and iOS (no badge icon) attached.