Skip to content
You're viewing documentation for Draftbit Classic (v1), our previous platform. See the current Draftbit docs.

Push Notifications for Android

Google’s Firebase Cloud Messaging (FCM) service is used to send push notifications on Android. Sign up for an account here: https://firebase.google.com

You’ll need a Firebase project for your app. You can create one from the Firebase console.

For each Firebase project, you add the types of apps you’re building. In this case, you’ll need to add an Android app to your Firebase project.

Make sure that the Android package name you enter matches the package name you have set in your Draftbit project at Project Settings > Google Play Store > Package name (docs)

When you get to the Download config file step, download the google-services.json file to your computer making note of its location.

In the Firebase console, open Project settings >Service accounts for your project.

Then, click Generate New Private Key, then confirm by clicking Generate Key. Securely store the JSON file containing the private key.

Once you have your apps google-services.json file and the Server Key, contact us through Intercom and provide the credentials. We will add them to your Draftbit app.

Once your credentials have been added, your app will be ready to receive push notifications.

  1. Go to the Project settings in your existing Firebase Project where you created your Android app.
  2. There, click on the Cloud Messaging tab and then on the three-dot menu at the corner of the Cloud Messaging API (Legacy) option. Here, you can see your existing Server key.
  3. Click on the Manage API in Google Cloud Console tooltip.

  1. You will be directed to Google Cloud Console. Here, click on Manage button.

  1. In the upcoming APIs & Enabled Services page click on Disable API option at the top section.
  2. Select Disable in the pop-up that appears.

  1. Go to your Project settings in your Firebase Project.
  2. Select the Cloud Messaging tab.
  3. Click on three-dot menu of the Firebase Cloud Messaging API option and click on the Manage API in Google Cloud Console tooltip.

  1. You will be directed to Google Cloud Console. Here, click on Enable button.

You can now see in the Google Cloud Console, Firebase Cloud Messaging (FCM) API has been enabled.

  1. Go back to the Project settings in your Firebase Project.
  2. Select the Service accounts tab from the top.
  3. Click on Generate new private key button.
  4. Then confirm by clicking Generate Key. Securely store the JSON file containing the private key.

Once you have completed these steps, contact our Support team via chat or email and provide the new Server key along with your project name, and let us know that you are already using push notifications. We will then add it to your Draftbit app.

After your credentials have been updated, your app will be ready to continue with push notifications setup.