最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论