SNS uses which version of Firebase Cloud Messaging API?

9

We send data message push notifications to Android devices via SNS and we would like to make use of analytics labels to improve message delivery statistics viewable within Firebase.

These analytics labels are only supported in the V1 Cloud Messaging API, not the legacy version.

Which version of the API does SNS use? And if it's the legacy version, are the plans to migrate to V1?

Thanks, Mikael

asked a year ago6170 views
11 Answers
8

I have just received a message from firebase saying that the FCM legacy APIs will be discontinued starting June 20, 2024. I assume SNS will switch to v1 at some point. I hope this will be done well in advance before the deadline.

answered 10 months ago
  • Same here, a timeline by AWS would be nice.

4

Wanted to share with the community, I did submit a ticket with AWS support and got the following as a response near the end of November:

Please note that the service team is fully aware of this notice, and are working to provide alternatives to ensure that your ability to send notifications via Amazon SNS is not disrupted and no production impact will be witnessed.

Additionally, I have gone ahead and added your voice on internal feature request to migrate from the legacy API to FCM (v1). That being said, kindly note that, as a Premium Support engineer, I do not have access to our development team’s plans for when a feature request will be enabled and the new API will be implemented. However, they have assured me that based on their timeline, there will be ample time to migrate to the new FCM APIs prior to the deprecation of the legacy APIs.

We will be communicating once we have launched the ability to use the new FCM APIs.

answered 3 months ago
2

As of January 2024, Amazon SNS now supports FCM v1 API, and with it, a token-based security model. Thus, if you have any mobile applications that deliver mobile push notifications via Amazon SNS to FCM, you can now upgrade your applications in place, with a single call to the Amazon SNS SetPlatformApplicationAttributes API action.

More info about this feature announcement: https://aws.amazon.com/about-aws/whats-new/2024/01/amazon-sns-fcm-http-v1-api-mobile-notifications/

AWS
answered 3 months ago
  • Hello, I just upgraded my platform application. However, according to https://firebase.google.com/docs/cloud-messaging/migrate-v1#update-the-payload-of-send-requests the message payload structure changed significantly and breaks the legacy message payload structure. Upgrading to the FCM v1 API is therefore no one-click upgrade! I'm trying to test the new payload structure via AWS' "Publish message to endpoint" test environment. However, there are no docs how the new payloads have to be structured in SNS and specific GCM payloads don't really seem to work. Fields in the "apns" object don't seem to get picked up, the messages go through and are sent to my iOS device but APNs-specific fields like "subtitle" and "sound" seem to be ignored. Tested payload:

    { "GCM": "{ \"notification\": { \"title\": \"Title\", \"body\": \"Body\" }, \"apns\": { \"payload\": { \"aps\": { \"alert\": { \"subtitle\": \"Subtitle\" }, \"sound\": \"default\" } } } }" }

  • Update: following my SNS failure messages in CloudWatch, it looks like SNS GCM.notification is mapped to the new FCM message.android.notification object which is very wrong! The GCM object has to be mapped to the FCM message object, which would map GCM.notification to message.notification, GCM.apns to message.apns and GCM.android.notification to message.android.notification. Please fix this ASAP as SNS push notifications via FCM is unusable with the HTTP v1 API right now!

    Firebase API specification: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

  • For further clarification as this faulty new API support persists since days, here's a SNS error where I tried to include "subtitle" in the GCM.notification object (I know, via the new HTTP v1 API specification, "subtitle" should appear in a nested "apns" object but it clarifies that GCM.notification is somehow mapped to message.android.notification): { "notification": { "messageMD5Sum": "...", "messageId": "...", "timestamp": "2024-01-22 09:46:53.463" }, "delivery": { "deliveryId": "...", "destination": "...", "providerResponse": "{"code":"400","message":"Invalid JSON payload received. Unknown name \"subtitle\" at 'message.android.notification': Cannot find field.","status":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.BadRequest","fieldViolations":[{"field":"message.android.notification","description":"Invalid JSON payload received. Unknown name \"subtitle\" at 'message.android.notification': Cannot find field."}]}]}", "dwellTimeMs": 49, "token": "...", "statusCode": 400 }, "status": "FAILURE" }

  • We are having problem at our end aswell, using the TOKEN based authentication breaks exiting and working push capability using AWS APIs. I can't really see any documentation that the message format has been updated towards AWS with the new authentication.

    We are also getting a 400-error with invalid json payload message.

  • @ValHus @Czyze Sounds bad! Have your opened a support ticket regarding this issue? If so, what was the answer?

2

I am curious about the timeline on this. Google will discontinue the legacy version in June 2024. If no action is taken, Android push notifications will stop working.

answered 10 months ago
  • Same here. We're now considering moving away from SNS and implementing FCM Admin SDK directly on our servers as a last resort before June 2024.

2

Any news on an ETA for this? Otherwise FCM support in SNS will stop working after June 20 2024.

James
answered 7 months ago
2

Any updates on this please? This is basically a ticking time-bomb.

answered 5 months ago
0

Hi,

I hope that you are doing well. Apologies for the delay. I am currently working with the service team regarding this query and I will let you know once the service team has provided an update.

Thanks in advance for your patience and I hope you have a great day ahead.

AWS
SUPPORT ENGINEER
Ryan_A
answered a year ago
  • Ryan, are you able to provide an update on this? I've now received the notice of discontinuation from FCM that the legacy API will no longer be available after 20 June 2024, so very keen to understand timescales for AWS to make the v1 API available to support migration and testing well in advance of this deadline. Thanks.

  • This matter is crucial for us as some functionalities, particularly analytics labels, are currently not working as expected. The accurate functioning of these features is integral to our operations. Given the impact on our analytics and overall workflow, could you please provide me with the current status or any updates on the matter at your earliest convenience?

  • @Ryan_A: Time is running out, after 9 months we really need a confirmation that AWS will migrate to the new API in time, otherwise we have to switch to another solution.

  • any news for this? tnx

  • Will there be any news? We need to know if we need to program custom solution to work directly with new Firebase API or we can continue using SNS for this.

0

Hi,

Thanks for your patience. The service team has confirmed that SNS uses the legacy FCM version.

I can see that there is already an existing feature request to migrate to V1. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.

AWS
SUPPORT ENGINEER
Ryan_A
answered a year ago
  • Do you have an update on this? Please see my answer re. recent announcements from Firebase.

  • Could you please give us an update on timeframe to launch support for this please? If AWS do not support this, it will become impossible to use SNS to send Android push notifications. This is a core requirement for SNS and we will be forced to switch platforms if we can’t get a reasonable idea of when you will support this.

  • Hello, is there any update to this please?

  • Hi, we would also be interested to hear any update here. We are concerned that we may need to migrate to another solution to maintain Android push notification support if there is no news about a timeline in the coming weeks.

  • Can anyone suggest alternatives to send Push Notifications from AWS to Android devices if AWS fail to provide an update on this in the short remaining time available?

0

Any updates on this matter?

answered 5 months ago
  • Hi Ryan, I hope you are well. As this deadline approaches, we are starting to consider migrating to another provider to avoid any interruption. Can you provide any update or guarantee that AWS will complete their migration in time, so that we can avoid switching provider?

0

It looks like the representative who initially responded to our comments is not active for the past 4 months. That said, if anyone knows of any updates on this matter, please reply to this comment so that everyone can see it.

Vadym
answered 3 months ago
0

Can somebody please open a support ticket to get a real answer to this issue? Our plan does not include technical support, so I cannot do it myself.

TGXTR
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions