mittl medien | Webentwicklung in Stuttgart

miTT PWA FIRE PUSH Documentation (Progressive Web App) for Joomla

Setup and Documentation of miTT PWA Firebase.

Push Notification - Joomla PWA

Joomla PWA Push Notification

* only in version miTT PWA PUSH (Joomla Plugin)

In the tab Push Notification the settings of the push messages are made. In the first setting "Choose category" you can specify the categories of Joomla posts from which the push messages should be sent.

In addition to the article, a title can be specified, which should appear in addition to the post. Furthermore, you can choose whether the category should also be displayed.

miTT PWA PUSH supports the sending of push messages via Joomla articles or FLEXIcotent. If you plan to send push messages via CCK K2, you can set the option to "Yes" and specify the category from which it should work.

The "Destination Url" determines which page should be opened when the user clicks on the push message. Here you can choose either the start URL of the PWA or the Joomla view or directly the article which was advertised with the push message.

The "New messaging Channel" determines the group that the subscribers are added to. This value should be set once and should not be changed again.

Firebase Google Analytics can be activated here, but cannot be deactivated by the user in order to comply with European data protection regulations. Therefore it should not be used on a production system. A solution for this is being sought.

Firebase Settings

Joomla PWA Push Notification

* only in version mitt PWA PUSH (Joomla Plugin)

Push messages are sent using Google Firebase Cloud Messaging (FCM). The prices for this can be found in the Pricing of Firebase under Cloud Messaging. At the moment the service is free of charge (Stand June 2020). To start using the service you have to create a Firebase account.

In the Firebase Console you add a new Project and assign a project name. In the second step you are asked if you want to activate Google Analytics for the project. To use it DSGVO compliant the users should have the possibility to disable tracking. The plugin with PWA PUSH does not allow this yet.

After creating the project, add a Web App to the project. After assigning the name you will get an overview with the data, which you enter into the Joomla Plugin. Transfer the values between the quotation marks like apiKey, authDomain, databaseUrl, projectId, storageBucket, messagingSenderId, appId. The measuerementId is only necessary if Firebase Analytics (Google Analytics) is used.

Back to the project overview you will find the tab Application at the top. In the settings of the application you have to create the PublicVapidKey in the tab Cloud Messaging. Here you go to Generate key pair below to create it.

In addition to the PublicVapidKey, authentication via the Firebase Admin SDK is required. Here you switch to the tab Service Accounts and can generate a private key below. This key will be placed on the web server, a folder above the root directory. The name of the key (without path) is entered in the PWA plugin at the bottom.

Creation of buttons for push messagStandard (Installationshinweis)es

To enable the user to subscribe to push messages it is necessary to provide the buttons. They can be added either via the template or module.

<button class=" mittpwapush__subscribe">Abonnieren</button>
<button class=" mittpwapush__unsubscribe">Abbestellen</button>

It is important that the class is used in the button "mittpwapush__subscribe" and "mittpwapush__unsubscribe". Whether a text or an icon is used is irrelevant.