GCM registration failing from extension

1,474 views
Skip to first unread message

Asesh Shrestha

unread,
Jun 16, 2025, 4:29:02 AMJun 16
to Chromium-dev
Hi all, since last week we have started to notice that Chromium's GCM registration fails from both our extension in our Chromium fork as well as from Chrome too. It was working w/o issues till last week but all of a sudden, it's not working anymore.

The FCM id has been hidden and we tried the following code from dev-tools:
const FCM_SENDER_ID = "***"; // Masked with ***

Using chrome.instanceID:
  chrome.instanceID.getToken(
    { authorizedEntity: FCM_SENDER_ID, scope: "GCM" },
    (token) => {
      if (chrome.runtime.lastError) {
        console.error("Failed to get FCM token:", chrome.runtime.lastError);
        return;
      }
      console.log("FCM Token:", token);
    }
  );


Alternately, we tried to use chrome.gcm.regsiter too:

chrome.gcm.register([FCM_SENDER_ID], function(registrationId) {
  if (chrome.runtime.lastError) {
    console.error("Failed to register for GCM (for push notifications):", chrome.runtime.lastError.message);
    return;
  }
  console.log("GCM Registration ID for push notifications:", registrationId);
});

console.log doesn't log anything as it's failing.

I have uploaded a recent screenshot from the chrome://gcm-internals page. As you can see it continues to fail to register from our extension with ID: jdbjambdaklncijmadilpibpedecgfao as well as com.google.android.gms.

The log from Chromium's log file:
[5360:13720:0612/135622.720:VERBOSE1:net\base\network_delegate.cc:37] NetworkDelegate::NotifyBeforeURLRequest: https://android.clients.google.com/c2dm/register3
[5360:13720:0612/135622.720:VERBOSE1:net\base\network_delegate.cc:37] NetworkDelegate::NotifyBeforeURLRequest: https://android.clients.google.com/c2dm/register3
[25980:13136:0612/135622.805:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[25980:13136:0612/135622.806:VERBOSE1:google_apis\gcm\engine\registration_request.cc:255] Delaying GCM registration of app: com.google.android.gms, for 27881 milliseconds.
[25980:13136:0612/135622.806:ERROR:google_apis\gcm\engine\registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT
[25980:13136:0612/135622.806:VERBOSE1:google_apis\gcm\engine\registration_request.cc:255] Delaying GCM registration of app: jdbjambdaklncijmadilpibpedecgfao, for 23087 milliseconds.

It was working fine till last week but starting the end of last week (Thursday/Friday), it keeps failing. Our FCM ID is valid too. I tried to do the same thing from my personal Firebase account on both Mac and Windows in both Chrome and Chromium, the same issue persists.

Then after all the retries fail, this is the error message that's shown from the above code:

Failed to get FCM token: {message: 'Server error occurred.'}

Can someone give us some pointers to find out the root cause of this issue?

Thanks
Screenshot 2025-06-16 141117.png

Asesh Shrestha

unread,
Jun 17, 2025, 11:04:24 PMJun 17
to Chromium-dev, Asesh Shrestha
NVM, looks like Google finally fixed this issue yesterday. It has started working again since yesterday.
Reply all
Reply to author
Forward
0 new messages