Web Push Notifications

Category: Modules
Subcategory: Messaging

Overview

Send notification to your user even when they do not have the app open. Works on both desktop and mobile.

Read more at https://www.notion.so/gajduk/Should-you-use-web-push-notifications-in-your-next-project-17876f133afe4ba6909f91612ec009b8

Documentation

Demo urlhttps://webpushdemo-sandbox.mxapps.io/

Description

Implements the web push standard – https://developer.mozilla.org/en-US/docs/Web/API/Push_API

A sample implementation is included in the module.

More information at:

 

Typical usage scenario

Web push is a good replacement for email notification especially when quick reaction is needed. The notifications can have two configurable buttons that can perform a task in your app or navigate the user to a certain page.

Features and limitations

Safari does not conform to the standard and is therefore not supported. IOS does not support web push notifications at all regardless of the browser.

Dependencies

  • All dependencies are packaged in the module
  • notable widget dependency is the microflow timer widget, be careful if you have a customized version of this widget
  • The bouncy castle is required for all encryption-related tasks. If you are using another library that depends on bouncy castle this might conflict with the notifications module. Unfortunately bouncy castle is a signed jar so it can not be packaged like other java libraries. 

Installation

  • Add the Web Push Snippet to a page where users can subscribe to your app. This can be the main layout of your app or a user profile or settings page.
  • Check the sample microflow for a guide on how to send notifications.

Releases

Version: 1.1.0
Framework Version: 8.12.0
Release Notes: Upgraded for Mendix 8 and higher.
Version: 1.0.0
Framework Version: 7.23.0
Release Notes: Initial release