Generating keystore file
- Open the Terminal or Command Prompt.
- Replace <my-release-key> and <alias_name> with the desired file name and alias name, respectively, then:
You will be prompted to set your Keystore password.
- Set your Keystore password and memorize it. You'll need this again when you code sign your app for Android.
- Enter the details as prompted.
- Set your Key password:
- Enter the required password.
- Else, press the RETURN or ENTER key in your keyboard to set the Keystore password as the Key password.
The Keystore file will be generated and downloaded in the path where you executed the above commands.
Download Firebase config file and Firebase Service Account file
- Firebase Cloud Messaging server key has been deprecated on June 21, 2024. To continue using push notifications, update your new service account JSON file (FSA file) instead of the deprecated FCM server key before the above mentioned date.
- The Firebase config file and Firebase Service Account file are required to enable push notification support in your Android app.
1. Download Firebase config file
- Sign in to your Firebase console.
- Select the required project. If you haven't created a project yet, then:
- Click the Settings icon, then select Project settings.
- Navigate to the General tab.
- In the Your apps card, select the package name of the app for which you need a config file.
- Click the google-services.json button. Your Firebase config file will be downloaded to your device.
2. Download Firebase Service Account file
- Select the required project.
- Click Settings and then select Project Settings.
- Navigate to the Service accounts tab and click Generate New Private Key. A confirmation popup will be shown, and the Firebase Service Account file will be downloaded once you confirm it.
- Securely store the JSON file containing the key and upload it your Creator account to enable the push notifications.