Integration with PWA (native browser notifications)

Created on 30 July 2024, 5 months ago

Problem/Motivation

I wonder if this good framework could work with a Progressive Web App created from a Drupal site (for example with the advanced_pwa or pwa modules), to control the delivery of notifications to the browser (or mobile web app).

There is a guide here by Mozilla which might be relevant, using the recent Push API and Notifications API (with Javascript..).

Would be great to be able to push a native notification with the ECA submodule 😇 serious apps could be made with Drupal 10!

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.3

Component

Code

Created by

🇮🇹Italy kopeboy Milan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kopeboy
  • 🇩🇪Germany jurgenhaas Gottmadingen

    Might be possible. Reading through the Mozilla guide you linked to makes me wonder if a node backend is required in order to serve what's needed to the PWA client. If so, building such a framework isn't in scope for this module. That should be done by one of the PWA modules. Then, they should also implement the PushFrameworkChannel plugin, which would be used to deliver messages to that channel by this framework here.

  • 🇮🇹Italy kopeboy Milan

    Mm.. I think it can be JS on the client side, at least for the simpler Notifications API.

    The more complicated Push API requires a service worker, but that's something advanced_pwa module already provides.

    I opened an issue there: Allow integration with ECA and Push framework Active

Production build 0.71.5 2024