Push Notifications Module: how it works?

Hi all, I have looked up the documentation and how to's of the push notifications in Mendix, but I can't figure out how to use it. It seems that the how to's are more theoretical, but it doesn't explain how to use the Push Notification Module in combination with Mendix. Or did I miss something? I also tried to use the demo, but in Mendix Modeler 7.7.1, it gives java errors (not backwards compatible?). In Mendix Modeler 6.10, it worked, but I see it still uses GCM instead of Firebase Cloud Messaging for Android. In Mendix Modeler 7.7.1, i get this error after installing the Push Notifications Module, Encryption Module and Community Commons Module: My question is: is there any example or detailed explanation about Push Notifications in combination with the current Mendix Modelers and FCM? Cause I don't find a way to even start an simple app with the push notifications. Thank you and have a nice day! Regards, Robin
1 answers

Hi Robin,

   You are correct that there are some errors in the Push Notification demo project due to compatibility issues. Hopefully this is corrected in the AppStore version soon. To get it to work try the following:

1) Start a new Mendix 7 project

2) Download the Mendix Push Notification module

3) For all the errors about navigation layouts.sidebar_full_responsive, pick a new layout.  Atlas_topbar is the new default so you can pick that one to fix the errors. I had to change this twice to fix all wrrors

4) Download the required modules: encryption, community commons

 Now you have what is effectively the demo project for the Push Notification set up for Mendix 7, however there is a known bug with the module that is being worked through on the GitHub.  There is a newer version of the module that is still being tested and not yet in the app store, but you can see all the information about this and get a fix:


So now that you have the technical pieces in place, how can you actually do anything with it?  Well from there you can follow the instruction guide, which you have likely already seen:


This guide does include a section about setting up Firebase Cloud Messenger specifically, which can also be found here:


Hopefully this gives you enough to get started. Once you add the push notification administration snippit to your project, you can follow this guide on how to send a test push notification:


Then you can look at the microflow that actually sends the push notification (in a Java action) and use this for your own notifications.

I hope this is helpful to you.