Home » Android » android – Add "badge notification" for progressive web application (PWA)

android – Add "badge notification" for progressive web application (PWA)

Posted by: admin May 14, 2020 Leave a comment

Questions:

I’m developing a progressive web application (PWA) that will eventually send notifications to users.

I already know that I’m able to send push notifications (like in any regular app), as explained in the following blog post: https://developers.google.com/web/fundamentals/getting-started/codelabs/push-notifications/?hl=en-us.

However, after having the app in home screen, I would like to add a “hint” to user, letting him know that he has to access the application. A great way to do that is doing something like a “badge notification” (as showed in whatsapp icon on the image below).

Similar badge notification on the Whatsapp icon

Is it possible to add this kind of behavior using progressive web applications?

How to&Answers: