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

FCM: Migrate from legacy HTTP to HTTP v1 #23

Open
AndyGaskell opened this issue Mar 26, 2020 · 8 comments
Open

FCM: Migrate from legacy HTTP to HTTP v1 #23

AndyGaskell opened this issue Mar 26, 2020 · 8 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@AndyGaskell
Copy link
Collaborator

Just really writing this as a note, and/or a place for a discussion about it.

So, at the moment we use the FCM API referred to as "HTTP", this is now described as legacy by google, the current one being "HTTP v1".

I didn't realise we were not using the latest version to be honest.

There are some good migration notes on...
https://firebase.google.com/docs/cloud-messaging/migrate-v1

Some background on...
https://firebase.googleblog.com/2017/11/whats-new-with-fcm-customizing-messages.html

I only noticed when a friend pointed out, on...
https://firebase.google.com/docs/cloud-messaging/send-message
...there are two different methods, and this one is described as legacy.

On first glance, it could be a drop-in replacement, but it seems like you need the Firebase project name in the URL, which current users don't have in their configuration settings.

@AndyGaskell AndyGaskell added enhancement New feature or request question Further information is requested labels Mar 26, 2020
@rolinger
Copy link
Collaborator

rolinger commented Mar 26, 2020 via email

@AndyGaskell
Copy link
Collaborator Author

Yea, no rush really, the older API hasn't had an end of life date set or anything.

Just thought I'd jot this down so it was kinda on the radar.

@rolinger
Copy link
Collaborator

rolinger commented Apr 17, 2020

@AndyGaskell - for sending notifications, our methods allow for adding as many recipients via addRecipient and another method that allows for passing an array of recipients. Sending notifications allows for this. But are you aware of a FCM method that could allow us to send an array (or bulk) tokenIDs for the deviceInfo? I want to send a mass array of 1,000 tokenIDs to see which of those tokenIDs are no longer valid - and then remove them from my DB.

We need to constantly cull the database to determine which IDs are invalid, and then use alternate communication methods (sms/email) to reach those users.

Additionally, every time our app starts it validates/updates the users tokenID - now this happens regardless of whether or not the user has enabled/disabled push notifications from our app. We can check this every time the user starts the app - but what about if they disable push notifications and don't start up the app? Is there any known FCM method to check to see if the tokenID has turned off push notifications? Again, we need to update our DB so we know that even if the tokenID is valid, the user disabled push notifications - so then we can use an alternate communications method.

@TalatNaeem
Copy link

can somebody help to understand that , do we have to change payload's structure in order to send message if we are migrating from legacy HTTP to HTTP v1.
Thanks

@robm92
Copy link

robm92 commented Jun 21, 2023

Firbase have confirmed June 20, 2024 is the deadline

@rolinger
Copy link
Collaborator

Yup, confirmed. June 20th next year. Clock is now ticking. @AndyGaskell - my projects are dependent on this repository; as it looks like others are as well. Lets have a chat about what we can do, add in developers and get this migrated to the new version.

@AndyGaskell
Copy link
Collaborator Author

Hi @rolinger

Yea, it'd be good to chat it through. Hopefully we'll be able to change the package and keep the interface the same. It'd probably be a jump from v1.2.0 to v2.0.0.

The notes on...
https://firebase.google.com/docs/cloud-messaging/migrate-v1
...make it sound not too bad to do.

We've still got nearly a year, but perhaps we could aim to have it done 6 or 9 months before the EOL, to give people time to update.

@robm92
Copy link

robm92 commented May 1, 2024

Hi all, just checking whether there are plans to update this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants
@AndyGaskell @robm92 @rolinger @TalatNaeem and others