Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of legacy API #2635

Closed
rodolfoamarques opened this issue Jul 16, 2024 · 3 comments
Closed

Usage of legacy API #2635

rodolfoamarques opened this issue Jul 16, 2024 · 3 comments
Assignees

Comments

@rodolfoamarques
Copy link

Describe your environment

  • Operating System version: all
  • Firebase SDK version: latest (12.2.0)
  • Firebase Product: FCM
  • Node.js version: all
  • NPM version: all

Describe the problem

the messaging().send() method continues to utilise the old API even though it has been deprecated since 2023 and removed since June 2024 as per this documentation

Steps to reproduce:

Calls/Usage of the above method results in a TOPIC_MESSAGE_RATE_EXCEEDED error.

Relevant Code:

in this very repository we can find the following code:

const FCM_SEND_HOST = 'fcm.googleapis.com';
const FCM_SEND_PATH = '/fcm/send';
const FCM_TOPIC_MANAGEMENT_HOST = 'iid.googleapis.com';
const FCM_TOPIC_MANAGEMENT_ADD_PATH = '/iid/v1:batchAdd';
const FCM_TOPIC_MANAGEMENT_REMOVE_PATH = '/iid/v1:batchRemove';

According to the latest documentation, the API to be used should be https://fcm.googleapis.com/v1/projects/{PROJECT_ID}/messages:send

@google-oss-bot
Copy link

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@devj3ns
Copy link

devj3ns commented Aug 30, 2024

related: #2602

@lahirumaramba
Copy link
Member

Thanks @devj3ns !

Hey folks, please see my response in #2602 (comment)

The deprecated endpoints mentioned in the issue are being used in sendToTopic and sendToCondition` APIs. These APIs are now deprecated in v12.4.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants