Monaca Docs
Search…
Android App Push Notification Settings
Monaca sends push notifications via FCM (Firebase Cloud Messaging). FCM is a cross-platform messaging solution that lets you reliably deliver messages at no cost. Using FCM, you can notify a client app that new email or other data is available to sync. You can send notification messages to drive user reengagement and retention. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app.
On this page, we will guide you to enable push notifications service for Android applications with Monaca.
You are required to have a Google account for this configuration.

1. Get a server key from Firebase console

Server key from Firebase console is required in order to integrate FCM with Monaca. To get this key, please proceed as follows:
    1.
    Go to Firebase Console and sign in with a valid Google account.
    2.
    Click +Add project .
3. Input a project name and choose your country/region. Then, click CREATE PROJECT.
4. Once your project is created, go to Project settings from the menu on the left.
5. In the Settings page, go to CLOUD MESSAGING. Then, you will be able to see the Server key which will be used in Monaca push notification settings later. The Server key is a Server API key for the push notification.

2. Get FCM configuration file from the Firebase console

Download the configuration file google-services.json on the Firebase console page.

3. Configure the FCM parameters in Monaca

    1.
    From Monaca Backend window, go to Push Notification.
    2.
    On the top-right-corner, click on the
    icon and select Push Configuration.
3. Click the Config button in the FCM SetUp Area.
4. Input google-services.json and the Server Key and click Save. Now, the Android push notification is enabled and ready to use.
Last modified 2mo ago