Part 2: Implement the Push Notifications Module
Last modified: August 20, 2024
Introduction
Now that you have implemented the prerequisites in your app, you must implement the Push Notifications Connector module. Complete the steps below to enable the basic configuration.
Downloading From Marketplace
If you have not done so, make sure to download the Push Notification Connector module from the Marketplace:
- Open up the Marketplace from Studio Pro.
- Search for Push Notification Connector.
- Open the Push Notification Connector module.
- Click Download.
When importing the module in Mendix 10.6.0 or above, you might get consistency error CE6087 for renamed design properties. Right-click and update all renamed design properties in the project.
Configuring Your App
In order for your app to use to use the Push Connections Module, configure the following things:
- Open App > Security in the App Explorer.
- Go to User roles.
- Adjust the user roles that should have access to the push notifications:
- The
Administrator
module role should be assigned to at least one user executing configuration and administrative tasks. - The
Anonymous
module role may be assigned to your anonymous app user role. - The
User
role is for any user role that needs to interact with notifications without being anAdministrator
orAnonymous
user. - Verify that the
NativeMobileResources.User
module role has been added to any user role that needs to interact with notifications (only for native mobile apps).
- The
- Save the Security settings.
- Open up App > Navigation in the App Explorer.
- Add a new open page navigation item to the Responsive navigation profile.
- Select the Administration page from the PushNotifications module. This page is located in the _USE ME/Admin folder of the PushNotifications module.
- Add a microflow sub-call to your AfterStartup microflow for the microflow AfterStartup_PushNotifications:
- If you do not have an AfterStartup microflow configured yet, read the After Startup section of App Settings for more information.
Now you are able to start your app and move on to the next section.