home / pushee-bundle
Adds FCM to Contao 4
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-bundle
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: 2024-10-29 06:05:52 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 - Pushee
Frontend-Module and fill in your Firebase configuration and Cloud Messaging server key. - Add the created Module to the
page-layout
of yourtheme
. Now clients will be prompt to enable push notifications. - To Send a push message, navigate to the
Push Benachrichtigung
section of the content area. - Enter a message
title
andbody
and 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.