WebKit team publishes guide on push notification usage to control app icon badges using Badging API.
Guides covers badge control, notification system prompt, and other technical details.
W3C: Badging API
WebKit Blog: Badging for Home Screen Web Apps