Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Progressive Web App - Notifications with firebase

Security covered Under active development 36 sites

This module allows Drupal sites to send push notifications to users via Firebase Cloud Messaging. It integrates with Firebase to manage these notifications, offering features for sending messages to all users or specific individuals, and can be used with the Views Bulk Operations module for targeted sending.

This module for drupal 10, 11
You should install with composer it will add google/auth to vendor.
1. Enable module.
2. Create your project (https://console.firebase.google.com/).
3. Get your access crentials from Settings => Cloud Messaging tab (https://console.firebase.google.com/u/0/project/YOUR-PROJECT-ID/settings...) to Firebase Settings(/admin/config/system/pwa_firebase)

Form version 2.0.9+ module change from legacy FCM APIs to HTTP v1. So you have to configure in module settings to refill all variables. (Attach credentials - Service account key json file is required)

To compose message You can go to firebase /admin/content/notification

It uses asynchronous guzzle promises which will help in sending bulk notifications.
If you want to send a huge user, you can create a view and use VBO. In the configuration you can add an action to "send a notification".

you can show block notification permission to display the message

This module does not use curl to send a message to firebase. So you can use on shared hosting
For Developper:
You can use service to send notification.

  • Send notification to all users
    \Drupal::service('pwa_firebase.send')->sendMessageToAllUsers($title, $message, $url);
    
  • Send a notification to 1 user (with all their devices)
    \Drupal::service('pwa_firebase.send')->sendMessageToUser($uid, $title, $message, $url);
    

Do you like this module? Show your appreciation by buying me ☕.

Drupal 9–11

Ask your assistant about Progressive Web App - Notifications with firebase

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
8
Tracked since
Jan 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.11 Stable 9–11 Aug 6, 2024
2.0.10 Stable 9–11 Mar 29, 2024
2.0.9 Stable 9–11 Mar 20, 2024
2.0.8 Stable 9–10 Jul 11, 2023
2.0.7 Stable 9–10 Jun 3, 2023
2.0.6 Stable 9–10 May 7, 2023
2.0.5 Stable 9–10 Jan 16, 2023
2.0.4 Stable 9–10 Jan 16, 2023