The Firebase Service Account JSON file contains the secure credentials your backend uses to connect to Firebase. You can download it directly from your Firebase project settings. 


Steps to Download the Firebase Service Account JSON


1. Go to Firebase Console


            (If you don’t have a project yet, create one first by following this guide: How to Set Up a Firebase Account for Sending Notifications?)




2. Open Project Settings


  • Click the ⚙️ gear icon next to Project Overview.

  • Select Project settings.





3. Go to Service Accounts


  • In the top navigation, click the Service accounts tab.


4. Generate a New Private Key


  • Under the Firebase Admin SDK section, click Generate new private key.

  • A .json file will automatically download to your computer.





Final Step


This downloaded file is your Firebase Service Account JSON. Use it to configure Firebase services on your backend server and start sending push notifications to your app users.