Configure Push Notifications

Last update: Edit

1 Introduction

This how-to will teach you to configure the runtime for using push notifications in native apps.

2 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:

  1. Open your app in Mendix Studio Pro.
  2. Log in as the Administrator user you previously designated.
  3. 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.