chrome.gcm deprecation timeline

530 views
Skip to first unread message

Yasin Ladha

unread,
Jun 28, 2022, 4:37:45 PM6/28/22
to Chromium Extensions
Hello,

I am looking to implement push notifications (currently using FCM) in my MV3 extension without the need for an external window to host a service worker (as I had to when using the FCM sdk). I have been able to use the chrome.gcm api to work around this, however I know that this functionality may be removed in the future.

Will functions like chrome.gcm.register and chrome.gcm.onMessage remain supported indefinitely? Or will these be deprecated and if so is there a timeline for that?

Thanks,
Yasin

Simeon Vincent

unread,
Jun 28, 2022, 8:27:38 PM6/28/22
to Yasin Ladha, Chromium Extensions
The documentation for the GCM API is regrettably out of date. When this API was first introduced it was powered by Google Cloud Messaging, but in 2019 (I think) it we moved it over to use Firebase Cloud Messaging. There are no plans to remove this capability from the extensions platform. 

On a related note, I opened issue 1337382 to suggest that we rename the API from chrome.gcm to something less confusing. In order to avoid breaking existing extensions, I expect that we won't take action on this request until the next manifest version bump.

I also opened issue 1319986 to request that Chromium not require that extension service workers display a notification when they receive messages with the web's push API

Simeon - @dotproto
Chrome Extensions DevRel


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/0c3eca33-2346-43b2-baa5-20f2f399a09fn%40chromium.org.

Yasin Ladha

unread,
Jun 29, 2022, 12:54:12 PM6/29/22
to Chromium Extensions, Simeon Vincent, Chromium Extensions, Yasin Ladha
Thank you for clarifying.

I read in an older discussion that you mentioned the registration format used by chrome.gcm.register() will become outdated, and to use chrome.instanceID.getToken() instead. Is this still the case? When I try to use instanceID the API is not recognized, even with the 'gcm' permission.

Thanks,
Yasin

Yasin Ladha

unread,
Jun 29, 2022, 12:54:52 PM6/29/22
to Chromium Extensions, Yasin Ladha, Simeon Vincent, Chromium Extensions

dede iş

unread,
Jul 2, 2022, 10:31:05 AM7/2/22
to Chromium Extensions, yasin...@gmail.com, Simeon Vincent, Chromium Extensions
i have an extension for a special website. it gives a captche error, but  website e doesn't want captche. i have a problem with my chrome extension. i'll pay whoever can help please contact me dede...@gmail.com

29 Haziran 2022 Çarşamba tarihinde saat 19:54:52 UTC+3 itibarıyla yasin...@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages