Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Search API attachments 10.0.13 — Minor update available for module search_api_attachments (10.0.13). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Mismatched entity and/or field definitions 1.2.1 — Minor update available for module meaofd (1.2.1). Release: Lupus Custom Elements Renderer 2.8.1 — Minor update available for module lupus_ce_renderer (2.8.1). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

This module allows your website visitors to subscribe to web push notifications via their browser. Administrators can send notifications from the admin interface, and other modules can send them programmatically. It uses the Firebase Cloud Messaging API to deliver these notifications.

Lets visitors subscribe their browser to web push notifications, and sends
them through the Firebase
Cloud Messaging HTTP v1 API
.

Visitors opt in through a block — a toggle button or an explicit allow/deny
form. Administrators can send an ad hoc notification from the admin UI, and
other modules can send programmatically or through a Rules action.

Upgrading from 8.x-1.x? Read this first

Google decommissioned the legacy FCM HTTP API on 20 June 2024.
The server key that 8.x-1.x authenticated with is no longer accepted by any
endpoint, so that branch cannot send on any Drupal version.

2.x uses a Google service account instead, so the credentials
are different and are configured in a different place. Every subscriber
must subscribe again
, because registration tokens are bound to a
Firebase sender. See
Upgrading
from 8.x-1.x
in the README.

Requirements

  • Drupal 10.3 or 11
  • PHP 8.1 or newer
  • A Firebase project with a registered web app

The PWA module is not
required. If it is installed, its app icon is reused for notifications.

Installation

  1. composer require drupal/pwa_firebase_notification
  2. Enable the module.
  3. Collect three things from the
    Firebase console:
    • Service account key — Project settings → Service
      accounts → Generate new private key. Store the JSON file
      outside the web root; the module stores only the path to it, so
      the key never lands in exported configuration.
    • Web app configuration — Project settings → General →
      Your apps → your web app → SDK setup and configuration.
    • Web push certificate — Project settings → Cloud
      Messaging → Web configuration → Web Push certificates → Generate key
      pair.
  4. Enter them at
    /admin/config/services/pwa-firebase-notification.
  5. Grant Subscribe to PWA notifications to the roles that should be
    able to subscribe, usually including anonymous.
  6. Place the PWA notification subscription block.

The Firebase
setup section of the README
walks through this in more detail.

Notable behaviour

  • Notification permission is requested only when the visitor activates the
    control, never on page load.
  • The Firebase JavaScript SDK version is a setting, so a broken SDK release
    does not need a module release to escape.
  • Expired subscriptions are treated as routine cleanup rather than errors:
    tokens FCM rejects permanently are removed automatically, and are counted
    separately from real delivery failures. A transient outage never deletes a
    subscription.
  • Subscriptions record the token, the owning user, the language and two
    timestamps — no user agent and no IP address.
  • The subscription endpoint is POST-only, permission-controlled and rate
    limited.

Rules

Enable the PWA Firebase Notification Rules submodule for a
Send web push notification action. It requires
Rules.

Credits

Originally based on code from
PWA issue
#2956352
.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Aug 2026
Latest release
1 month ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
2.0.0-rc1 Pre-release 10–11 Aug 18, 2026
2.x-dev Dev 10–11 Aug 18, 2026