If you would like to upgrade to a newer long-term support version of Studio Pro, see Moving from Mendix Studio Pro 8 to 9.
Configure Push Notifications
Introduction
This how-to teaches you how to configure the runtime for using push notifications in native apps.
Configure Your Notifications
If you have completed Add Module Dependencies and Implement the Push Notifications Module per your use case, do the following to configure your push notifications:
- Open your app in Mendix Studio Pro.
- Log in as the Administrator user you previously designated.
- Navigate to the Administration page.
The first time you open this page it will present you with a wizard to set up the Firebase configuration. If you have not set up Firebase yet, see Set Up the Google Firebase Cloud Messaging Server. The wizard will mention the following files:
File | Source | Usage |
---|---|---|
{project_id}-firebase-adminsdk-{identifier}.json | Google Firebase | Private key for the Firebase service account, used in runtime configuration. |
GoogleServices-Info.plist | Google Firebase | Firebase configuration and private key, bundled as part of your iOS application. |
google-services.json | Google Firebase | Firebase configuration and private key, bundled as part of your Android application. |
These files contain the information and private keys necessary to enable push notifications in your iOS and Android apps. The private key for the Firebase service account must be uploaded in the configuration wizard (or manual configuration) in your Mendix app. The Android and iOS specific configuration files must be configured when you build your native apps for Android and iOS, see Build a Native App with Push Notifications Enabled.
Before you build your app, make sure to implement push notifications in the native app first. See Native Push Notification Implementation.