How can you trigger an Android heads-up notification through a PWA?

PressRex profile image
by PressRex
How can you trigger an Android heads-up notification through a PWA?

I'm currently trialling a PWA that will act as a notification system for employees that are on call.

I've managed to setup push notifications for my PWA through the use of a manifest file to make it downloadable and a service worker to handle the subscribing, retrieval and showing of notifications and I have a server application that makes use of the web push API to send the notifications.

All seems to be working well, however on Android devices, the notifications do not seem to be showing a heads-up notification and instead goes straight to the 'background' notifications. I understand this would typically be handled through a high priority notification channel for native Android apps but is there any way to accomplish this for a PWA application?

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More