I am upgrading a website that use Wen Push Notification for Chrome and Firefox. It has been running for last 2 years. It has nearly more than 2-3 Million Subscriber. But now, its servers are slow and that's why it I am migrating web push notification part to AWS lambda
for scalable solution as subscribers are increasing.
Note :: It uses pywebpush library for sending push messages.
As project was build very early, It uses GCM Keys
instead of Firebase Keys
. During Migration, I have found very weird thing that same GCM keys that have been working great from main servers, are not working from aws lambda
. And I am getting 401 - Legacy Server Key
error. Mozilla web push are working great
I read the GCM documentation and find out that GCM is deprecated. And after April 2019, It will not be working any more. Also, I am not able to see any GCM console. I went to firebase console and created a new project and tried sending push notification with new fcm_key
, This time it responded with 200 and MisMatchSenderId
, which make sense because this subscription info was taken from google api using gcm sender id
. Now I have following questions, if anyone knows the answer please let me know.
How can I migrate current
GCM project
toFCM project
so that mygcm sender id
remains same ? Can I ?Nearly 2-3 million subscribers are subscribed using old
GCM sender id
, If I can't migrate then what's the solution. Would I loose all of my subscribers or Do I need to resubscribe for every user and get new subscription info ?If I need to resubscribe for every browser, Would It ask for allow and block permission again ?
You help will be appreciated !!