Helpcenter +918010117117" [email protected]
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

Enable Android Push Notifications

StoreHippo provides the provision to automatically send push notifications. If you are looking for a Cloud Messaging configuration, the following steps will help you enable Cloud Messaging for your Android app. Google has replaced Google Cloud Messaging (GCM) with Firebase Cloud Messaging (FCM). To configure the push notification in your Android app, you need to create a firebase project, get the configuration keys and add keys to your app.

Create a project on Firebase

First of all, you need to create a firebase project. To create a firebase project, follow the steps mentioned below:

  • Go to the Firebase console
  • Click on the create project button. 
  • Enter the project name and click the Continue button.

Now, the Firebase project created.

Create a Configuration File

After creating the firebase project, you need to create a configuration file. The configuration file will be in JSON format. Along with the JSON file, you need to get the server key. To create a configuration file, follow the steps from the step mentioned below:

  • Go to the Firebase console.
  • Select the Android app by clicking on it as shown in the image below. 
  • Register the app by entering the app package name and click the Register button.
  • Once the app is created, select the app from the app dashboard as shown in the below image.
  • Now, download the google-services.json file.
  • Click on the Cloud Messaging option as shown in the below image.
  • Copy the server key. You can also add the server key and get that.

After downloading the JSON file and getting the server key, you can proceed to configure the push notification.

Configuring push notification to mobile app

To configure the push notification to the Android mobile app, follow the steps mentioned below:

  • Go to the Mobile Apps > Mobile Apps section in your StoreHippo Admin Panel.
  • Proceed to add or edit the Android app. 
  • Under the Google Services Settings, upload the google-services.json file and enter the server key as shown in the image.
  • Click the Save button to apply the changes. 
  • After saving the app, click on the Rebuild button.
NOTE: The package name entered while creating the firebase app should be the same as the name entered in the mobile app section.

Once the app build is ready, you can download it and push to Google Play Store for getting published. After the app is published, you can start sending the push notifications. Click here to know more about push notifications.