Skip to main content
All CollectionsGameball Admin Settings
Updating Firebase Cloud Messaging (FCM) Configuration to HTTP v1 for Gameball Customers
Updating Firebase Cloud Messaging (FCM) Configuration to HTTP v1 for Gameball Customers

Guide to help you update Firebase Cloud Messaging (FCM) Configuration to HTTP v1.

Ganna Adnan avatar
Written by Ganna Adnan
Updated over 3 months ago

To ensure continuous delivery of notifications to your mobile users, Gameball now requires an update to the Firebase Cloud Messaging (FCM) configuration, transitioning from the legacy API to the new HTTP v1 API. This article walks you through the steps needed to complete this migration.

Step 1: Access Your Firebase Project Information

  1. Sign in to the Firebase Console:

    • Open your web browser and go to the Firebase Console.

    • Log in using the Google account associated with your Firebase project.

  2. Navigate to Service Accounts:

    • In the Firebase Console, click on the Settings (gear icon) in the left sidebar.

    • Select Project Settings, then go to the Service Accounts tab.

  3. Generate a New Private Key:

    • Click on Generate New Private Key to download a JSON file containing all necessary information for the migration.

Sample FCM Private key JSON file:

{

"type": "service_account",
"project_id": "fcm-test-*****",
"private_key_id": "*****4da92a*****031791732e*****",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvQIB*****ASCBKcwggSjAgEAAoIBAQCnZZw4akn8XO2J\nYS*****RhTCxF+KyTNmp7q0GnuoEZweGyla6t*****PxSnh\nfX5w1wxD7r1iGxJCG8******",
"client_email": "firebase-a*****est-7ce24.iam.gserviceaccount.com",
"client_id": "*****38150929365",
"auth_uri":"https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url":"https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-8j******.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"

}

Step 2: Update Your Gameball Dashboard

  1. Log in to the Gameball Dashboard:

    • Access your Gameball dashboard using your credentials.

  2. Locate Mobile Configurations:

    • Go to the Settings tab in the dashboard.

    • Navigate to the Mobile Configurations in the integration section.

    • !Note: The old attributes such as Sender ID, Web API Key, and Server Key should be left unchanged.

  3. Enter the Required Information:

    • projectId: Open the downloaded JSON file. Find the project_id field, copy its value, and paste it into the projectId field in the Gameball dashboard.

    • privateKey: Locate the private_key field in the JSON file. Copy the entire value (including "BEGIN" and "END PRIVATE KEY" lines) and paste it into the privateKey field.

    • clientEmail: Find the client_email field, copy its value, and paste it into the clientEmail field.

  4. Save Changes:

    • After entering all three fields, click "Save" to apply the changes.


By following these steps, you will ensure your notifications continue to work seamlessly with the new Firebase API requirements. Thank you for your cooperation!


Need Help?

If you have any questions or need further assistance, please contact our support team at support@gameball.co.


Related Articles:

Did this answer your question?