home / pushee-bundle
Adds FCM to Contao 4
Package info
github.com/HOMEdigital/puschee-bundle
Type:contao-bundle
pkg:composer/home/pushee-bundle
v1.0.3
2020-07-31 09:35 UTC
Requires
- php: ^5.6|^7.1
- contao/core-bundle: ^4.4.2
- home/pearls-bundle: ^1.0.4
This package is auto-updated.
Last update: 2026-03-01 00:14:17 UTC
README
Adds the ability to send notifications from the Contao backend to Clients how have allowed the browser to receive notifications via FCM.
Installation
composer require home/pushee-bundle
Navigate to /contao/install and update your database.
Usage
- Create a new
FCM - PusheeFrontend-Module and fill in your Firebase configuration and Cloud Messaging server key. - Add the created Module to the
page-layoutof yourtheme. Now clients will be prompt to enable push notifications. - To Send a push message, navigate to the
Push Benachrichtigungsection of the content area. - Enter a message
titleandbodyand clicksenden. - The message will then be send to all clients how have enabled to receive notifications.
Notes
If someone enables notifications there client_id will be saved in the contao database.
After sending a push notification the result will be processed and client_id's that are no valid will be removed.
Sending push notifications is not possible when there are no clients registered, or the FCM server key is missing.