Skip to main content

Web Push Opt-In Module

Introduction

Collect consents for Web push notifications to send personalized Web push notifications to your customers in a GDPR-compliant way.

Typical Use Cases

This module is required to collect opt-ins for Web push notifications.

How to Use the Module

Following requirements must be fulfilled so that the chat can ask for a Web Push opt-in:

  • The web browser must support Web push subscriptions and Web push notifications. Currently, Safari DOES NOT support Web push subscriptions! Instead, only Chrome, Edge and Firefox support Web push subscriptions. Chrome sets push notifications to off by default on desktop. We recommend to use Google Chrome on desktop (not on mobile) for repeated testing.
  • The hosting website must provide the file service-worker.js from tab Publish at the webpage root directory, e.g. at https://www.example.org/service-worker.js
  • The customer must not have accepted or declined a Web push subscription for the hosting website, yet. In case of Google Chrome on desktop this can easily checked by opening URL chrome://settings/content/notifications in Chrome web browser on desktop and checking the list of domains. Delete any existing Web push subscription for your domain, and completely RESTART Google Chrome! Only after a restart of Google Chrome you will be asked again.
  • The hosting website must be opened with https, not with http.
  • There must not be any HTTP basic authentication present on the hosting website, e.g. as it could be the case in a staging environment.

If these requirements are not met, the chat will simply skip the process module and proceed with the next one.