Setup Push Notification for Android App

This guide describes how to configure Push Notification in an Android app for Unifonic Notice and send push notification through this app. Please follow below steps:

 

1. Configure Push Notification in Android app

Configure Android push notification in your Android app by enabling firbase console and retrieving FCM Key. To enable Log in your Firebase Account. Add project to your Firebase Console

Set project name and location as shown in the below image

Download google-services.json file and add it to the root directory of your Android app project. Add Firebase SDK to your android app in Firebase Console.

Go to your PubNub Admin Dashboard and select your keyset.

Scroll to “Mobile Push Notifications” in the list, enable the Push Notifications add-on, and enter the API key for the app you just created in the Firebase console. You can find your FCM key (listed as Server key in the Firebase console) by going to “Project Overview” in the left sidebar, click on “Settings”, and select the “Cloud Messaging” tab.

2. Configure Push Notification Credentials in Notice App Instance

2.1. Create credentials to save Android push notification app credentials in Notice App as shown in this image.

2.2. Select Credential Type as "Android Push (FCM)" and provide FCM Key, as provided in the image.

mceclip0.png

2.3. Update Notice App Instance to use the above-created credentials as FCM Credentials.

mceclip1.png
Have more questions? Submit a request

Comments

Powered by Zendesk