---
updatedAt: 2025-07-15T08:42:40.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Configuration

Enabling and configuring Push Notifications.

> 👍 Important!
>
> You need to enable **Push Notifications** in the app and in the backend services (server).

# Enabling in Backend Services

To turn on messages for the app in the backend services:

1. Click on the **Push** link in the **App Builder[Toolbar](https://docs.appery.io/docs/toolbar)**:

<Image align="center" className="border" border={true} src="https://files.readme.io/a041d36-2024-05-29_11-33-15.png" />

The settings page for this app will open in a new tab.

> 📘 Tip!
>
> Note that you can also switch to the **Push Notifications** tab directly from the **[Project Information](https://docs.appery.io/docs/general-platform-overview#project-information)** page.

2. Select the **Enable Push Notifications** check box to enable **Push Notifications** for this app:

<Image align="center" className="border" border={true} src="https://files.readme.io/68c2310-2024-05-29_09-10-08.png" />

You will be notified that the next step is linking the app with the database of your choice.

# Linking with **Database**

**Push Notifications** require using a database. The database stores all registered devices and allows sending targeted **Push Notification** messages.

For **Database**, click the **Select database** button. We recommend creating a new database but you can also use an existing one. Device information will be stored in the built-in **[Devices](https://docs.appery.io/docs/database-collections#devices)** collection:

<Image align="center" className="border" border={true} src="https://files.readme.io/e81ffff-2024-05-29_09-23-06.png" />

# **Push Notifications** Settings

Make sure that under the **Settings** section, all three options are selected:

<Image align="center" className="border" border={true} src="https://files.readme.io/9288788-2024-05-29_11-31-01.png" />

> 📘 Android Badges Support
>
> Some Android launchers also support badges.\
> You can read [here](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#badges) to learn more.

## Android Settings

> 🚧 Push Notification Provider
>
> Please be aware that **GCM** provider is not supported by Google anymore. Therefore, only **FCM** provider settings are available.\
> Learn how to migrate your project from **GCM** to **FCM** [here](https://docs.appery.io/docs/pushnotifications-configuration#section-migration-from-gcm-to-fcm).

### Setting up Firebase Cloud Messaging Provider

Push notifications on Android devices are sent via [Firebase](http://firebase.google.com). So, if you have no Firebase account, you’ll need to create it to be able to to send pushes. This is free and requires no special knowledge.

> 📘 Existing Firebase Project
>
> This section shows how to create a new project. You can also use an existing project.

1. Go to <http://firebase.google.com> and log in with your developer credentials. If you are already signed in, you will see the **Go to console** link in the upper right corner.
2. In the console, click the **Add project** button:

   <Image align="center" className="border" border={true} src="https://files.readme.io/1b9e047-2024-05-29_09-27-00.png" />
3. Enter the project name, for example, ***AndroidPN***. Click **Continue**:

   <Image align="center" className="border" border={true} src="https://files.readme.io/407f87f-2024-05-29_09-29-34.png" />
4. Proceed with the following steps and when it’s ready, click **Continue** to open the project:

<Image align="center" className="border" border={true} src="https://files.readme.io/7cb5641-2024-05-29_09-34-03.png" />

5. Click on the *Android* icon:

<Image align="center" className="border" border={true} src="https://files.readme.io/ac59867-2024-05-29_09-35-24.png" />

6. You will be asked to enter the app package name:

   <Image align="center" className="border" border={true} src="https://files.readme.io/44ffc3a-2024-05-29_09-37-25.png" />
7. This can be found in the **App settings > Android binary** section of your Appery.io application:

   <Image align="center" className="border" border={true} src="https://files.readme.io/4ea1d74-2024-05-29_09-39-07.png" />

> 🚧 Important!
>
> This name can be modified or left as is but the Firebase app package name should match the name inside the **[App Builder](https://docs.appery.io/docs/apperyio-visual-builder)** in **Project > App settings > Android binary**.

8. Go to Firebase and paste this name into the **Android package name** field. Also, name your project and proceed by clicking **Register app**:

<Image align="center" className="border" border={true} src="https://files.readme.io/c679aaf-2024-05-29_09-46-57.png" />

8. In Step 2, click **Download google-services.json** and save the ***google-services.json*** file to your drive.

<Image align="center" className="border" border={true} src="https://files.readme.io/ca8bb14-2024-05-29_09-51-06.png" />

9. Now, go back to the app **Push Notification Settings** tab, proceed to the **Android setting** section, and click the **Change…** button to upload the downloaded *google-services.json* file to the app by using the \[Media Manager]\(Now, go back to the app Push Notification Settings tab, proceed to the Android setting section, and click the Change… button to upload the downloaded google-services.json file to the app by using the Media Manager tool:) tool:

<Image align="center" className="border" border={true} src="https://files.readme.io/f9c5055-2024-05-29_09-59-59.png" />

10. Click **Next**, skip the **Add Firebase SDK** section, click **Next** and then **Continue to console**:

<Image align="center" className="border" border={true} src="https://files.readme.io/fd9c34a-2024-05-29_10-02-46.png" />

11. When in the console, click the gear icon and select **Project settings**:

<Image align="center" className="border" border={true} src="https://files.readme.io/0c519c3-2024-05-29_10-06-56.png" />

12. Switch to the **Service accounts** tab and click **Generate new private key**, then confirm by clicking **Generate key**:

<Image align="center" className="border" border={true} src="https://files.readme.io/97c1b35-2024-05-29_10-08-58.png" />

13. Save the *Firebase Admin SDK JSON* to your drive:

<Image align="center" className="border" border={true} src="https://files.readme.io/96e803d-2024-05-29_10-10-24.png" />

14. Return to **[Push Notification Settings](https://docs.appery.io/docs/pushnotifications-configuration#notification-settings)** in [Appery.io](https://appery.io).
15. Click the **Change** button to upload the Firebase private key for the **Firebase Admin SDK JSON File** field

<Image align="center" className="border" border={true} src="https://files.readme.io/d1323c8-2024-05-29_10-17-31.png" />

Your **Push Notifications** settings are saved successfully and you can generate your binary APK file and install the application.

<Image align="center" className="border" border={true} src="https://files.readme.io/c1d0dfb-2024-05-29_10-19-42.png" />

<br />

> 👍 Video: Configure Sending Push Notifications to Android mobile devices
>
> You can check this **YouTube video** tutorial that shows how to configure sending pushes to mobile devices running on Android:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/Uo7oX2zlWe4" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

<br />

> 🚧 Note!
>
> To create a [**Google Play** account](https://play.google.com/console/u/0/signup) you'll need to pay a one-off $25 registration fee. You may be asked to verify your identity using a valid ID to complete your account registration. If we can't verify your identity, the registration fee won't be refunded.

## iOS Settings

To enable **Push Notifications** for an iOS app, you must have a *Development Certificate* if your app is registered in the ***Development*** mode, and a *Production Certificate* if your app is registered in the ***Distribution*** mode.

1. If you are using a *Production Certificate*, select the **Production** option in the **iOS settings** section. If you are using a *Development Certificate*, leave it unselected:

<Image align="center" className="border" border={true} src="https://files.readme.io/5a0e81c-Screenshot_24.png" />

2. Also, you will need to upload the **Push Notification** `Client SSL` certificate you downloaded from the [Apple Developer](https://developer.apple.com/) portal.
3. To generate a **Push Notifications** certificate, you need to open the **App Ids** page, find the desired **App ID**, click **Configure**, and select the **Enable** for **Apple Push Notification service** check box. Then click **Configure** (selecting either **Development** or **Production stage**).

> 👍 Important!
>
> For configuring sending pushes, you will need a different certificate from the one you get for [signing your app](https://docs.appery.io/docs/appexport-certificate-management#for-ios) but the flow of converting it is the same - using `openssl` with exactly the same commands.\
> You can check [this](https://www.youtube.com/watch?v=aMS4T0snEeA\&t=201s) video to learn how it's done.

4. Fill in the **Certificate password** that was specified during *.p12* certificate creation:

<Image align="center" className="border" border={true} src="https://files.readme.io/d8808eb-Screenshot_22.png" />

That’s it for iOS configuration.

> 📘 iOS Bundle ID
>
> The Bundle ID shouldn’t have a wild card character, otherwise, you will not be able to configure push notification properties.

> 👍 Video: Configure Sending Push Notifications to iOS mobile devices
>
> Also, you can check this **YouTube video** tutorial that shows how to configure sending pushes to mobile devices running on iOS:

<HTMLBlock>{`
<iframe width="610" height="315" src="https://www.youtube.com/embed/9sX7K1hvLyc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
`}</HTMLBlock>

# Enabling in the App

> 🚧 Cordova Plugin requirements
>
> The *google-services.json* file is required with **PushPlugin** Cordova plug-in for successful project builds. Please don't enable this plug-in before configuring **Android settings**.

To enable **Push Notifications** in an app, the **Push Notifications** plug-in has to be activated. Go to **Project > App settings > Cordova plugins** and enable the **PushPlugin** Cordova plug-in (and the **Device** Cordova plug-in for JQM projects):

<Image align="center" className="border" border={true} src="https://files.readme.io/1ad9ee7-small-2023-05-09_21-27-55.png" />

> 👍
>
> For Ionic projects, enabling the **Device** Cordova Plug-in is not required.

## Migration from GCM to FCM

Before version *2.0*, Cordova **PushPlugin** used **Google Cloud Messaging** provider to register devices. As GCM is not supported by Google, all projects with the Cordova **PushPlugin** version lower than *2.0* do not receive push notifications anymore.

### Best practices for migration from GCM to FCM

1. [Setup](https://docs.appery.io/docs/pushnotifications-configuration#section-setting-up-firebase-cloud-messaging-provider) **Firebase Cloud Messaging** provider on the **Push** tab.
2. [Update](https://docs.appery.io/docs/pushnotifications-configuration#section-enabling-in-the-app) **PushPlugin** Cordova plug-in in your project. It should be at least of *2.0* version.
3. Publish your project.

> ❗️ Project update
>
> Users won't be able to receive push notifications until they update application. The [auto update](https://docs.appery.io/docs/appexport-auto-update) feature won't help in this case.