# 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="/files/msB0h9eoO7EaKHTFFYJ9" 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="/files/16CiQ7Ks8pzJKQWcXrJf" 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="/files/eKKdJO3NHJfPMqKg6P2j" alt="" width="375"><figcaption></figcaption></figure></div>

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

<figure><img src="/files/5ywZAqy7HpASBDsidwyK" 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="/files/X1mVZLt3UhwcKUbG8py5" alt="" width="375"><figcaption></figcaption></figure>

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

<figure><img src="/files/UTpCNucKypEnj6DyQQ1R" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/developers/migration-guides/fcm-legacy-api-migration-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
