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
compose
It uses asynchronous guzzle promises which will help in sending bulk notifications.

you can show block notification permission to display the message
block

base on Progressive Web App - Notifications
this module does not use curl to send a message to firebase. so you can use on shared hosting

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

Supporting organizations: 

Project information

Releases