Configure Firebase Key and ID¶
This is required for all
android apps. Your Firebase Server Key and Firebase Sender ID are used to send push notifications to ANDROID devices.
To begin, we'll obtain a Firebase Server Key and Firebase Sender ID. These keys allow Hengam to use Google's push services for your notifications.
1. Create a Firebase project¶
If you already have an FCM project you would like to use with Hengam, you will need to retrieve your "Sender ID" and "Firebase Cloud Messaging token". Then skip to step 2
1.1. Visit the Firebase Console and sign in with your Google account.
1.2. Press "ADD PROJECT" or select an existing one.
1.3. Enter a project name and follow the steps, then press "CREATE PROJECT".
2. Getting your Firebase Cloud Messaging token and Sender ID¶
2.1. Click the Gear icon in the top left and select "Project settings".
Important: Make sure you choose an existing project instead of creating a new one if you are migrating from an other push provider.
2.2. Select the "CLOUD MESSAGING" tab.
2.3. Save the two values listed:
- Server key
- Sender ID
3. Configure your Hengam app's Android platform settings¶
If your app is not activated, you can set your own firebase keys either in app activation flow or settings. But whenever your app is activated, it is not possible to change the keys.
3.1. Go to
Settings and go to the
push notification tab to add your keys for your inactive app or to see the current keys for activated app.
3.2. Paste your Server Key and Sender ID in here and press Save.
You now have a key to send push notifications from your Android app.