Prerequisites for Android app

Prerequisites for Android code sign

Generating keystore file

To generate the keystore file for Android, you must have a Java Development Kit (JDK) or Java Runtime Environment (JRE) set up. Alternatively, you may use Android Studio.
  1. Open the Terminal or Command Prompt.
  2. Replace <my-release-key> and <alias_name> with the desired file name and alias name, respectively, then:
    keytool -genkeypair -v -keystore <my-release-key>.keystore -alias <alias_name> -keyalg RSA -keysize 2048 -validity 20000 -storetype jks

    You will be prompted to set your Keystore password.

  3. Set your Keystore password and memorize it. You'll need this again when you code sign your app for Android.
  4. Enter the details as prompted.
  5. Set your Key password:
    • Enter the required password, or
    • 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 FCM server key

The Firebase config file and FCM server key are required to enable push notification support in your Android app.

1. Download Firebase config file

  1. Sign in to your Firebase console.
  2. Select the required project. If you haven't created a project yet, then:
    1. Create a project in Firebase. Learn how
    2. Register your app with Firebase. Learn how
  3. Click the Settings icon, then select Project settings.
  4. Navigate to the General tab.
  5. In the Your apps card, select the package name of the app for which you need a config file.
  6. Click the google-services.json button. Your Firebase config file will be downloaded to your device.

2. Download FCM server key

  1. Access your Firebase console.
  2. Select the required project.
  3. Click the Settings icon, then select Project settings.
  4. Navigate to the Cloud Messaging tab.
  5. Copy the Server key.

Related topics

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com