# FCM legacy API Migration Guide

Starting June 01, 2024, Google will discontinue support for sending mobile push notifications via the [legacy FCM v1 APIs](https://firebase.google.com/docs/cloud-messaging/migrate-v1). To avoid disruption to the notification service on your platform applications, we recommend planning and migrating them before this date. For guidance on migration, please refer to the documentation provided here.

{% hint style="info" %}
No action is required on the social.plus SDKs and UIKits.
{% endhint %}

### Generate a new private key JSON file from Firebase Console.

1. Go to [Firebase Console](https://console.firebase.google.com/).
2. Navigate to Firebase project -> "Service accounts" tab.
3. Then click "Generate new private key" -> "Generate key" (trigger download of .json file).
4. Store the JSON file that contains the private key securely on your local machine.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F96idYYg60wdYqwTv14kp%2Fimage.png?alt=media&#x26;token=3882f082-cf89-4029-8a81-71d2b49a1841" alt=""><figcaption></figcaption></figure>

### Add a new private key JSON file on the Admin Console

1. Go to [social.plus Admin Console](https://asc.amity.co/) and log in with credentials.
2. On the left navigation bar, navigate to "Settings" -> "Push Notifications".
3. Click Add New Certificate on the "PNS Certificates" section.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2Ftl5jn3xTqyf3MQ6TaKkP%2FScreenshot%202567-11-13%20at%201.28.26%20PM.png?alt=media&#x26;token=cd948e50-905c-4b0a-b868-6f3c559e46e3" alt=""><figcaption></figcaption></figure>

4. When the "Add PNS Certificate" option appears, enter the Certificate Name and select "Android" as the platform.

<div data-full-width="false"><figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FrPlbUrxIiOMC9CgWSouR%2FScreenshot%202567-11-13%20at%201.29.12%20PM.png?alt=media&#x26;token=60fbf618-5ad4-4699-8769-a89b0a1d6993" alt="" width="375"><figcaption></figcaption></figure></div>

5. Select "Firebase Cloud Messaging in the "Provider" section.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FRXqnkAkrrmJu7dK3RVr0%2FScreenshot%202567-11-13%20at%201.30.24%20PM.png?alt=media&#x26;token=d3761e05-48fa-41fb-9d7a-76894061f608" alt="" width="375"><figcaption></figcaption></figure>

5. In the "FCM Credentials" section, upload the JSON file that contains the downloaded key.
6. After successfully uploading the JSON file, click "OK" to save the credential.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FSgmPpNqaIVhysBrPn5ka%2FScreenshot%202567-11-13%20at%201.32.43%20PM.png?alt=media&#x26;token=3b10aba0-0e43-45b8-94b1-a5ea3f33bd17" alt="" width="375"><figcaption></figcaption></figure>

5. Finally, ensure to activate the newly uploaded certificate by clicking the upward arrow icon.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F1UK6t5ltJUlS7BHHgwvh%2FScreenshot%202567-11-13%20at%201.33.34%20PM.png?alt=media&#x26;token=79aa31a5-013d-4c46-897d-82846e63cf6e" alt=""><figcaption></figcaption></figure>
