Badges for PWA on iOS

Dominik L Posted in Component Development 2 months ago

Hello everyone!

I recently found out that Apple supports badges for PWAs on iOS to show the number of unread notifications.

Since apple announced to NOT stop support for PWAs on iOS in Europe, I need this new function for PWA.

Can someone help me implement this?

https://webkit.org/blog/14112/badging-for-home-screen-web-apps/

Replies
in Booker EVail Replied 2 months ago

You can use the Badging API, which is a web standard that allows you to display and update badges on your app icon. You need to register a service worker and request permission from the user to use this API. You can also use the Push API to send notifications to your service worker and update the badge accordingly. DogNeedsBest

Have you tried this? If this does not work then inform me.

in Booker EVail Replied 2 months ago

You can use the Badging API, which is a web standard that allows you to display and update badges on your app icon. You need to register a service worker and request permission from the user to use this API. You can also use the Push API to send notifications to your service worker and update the badge accordingly.

German Dominik L Replied 2 months ago

Anyone pls?