Azure Notification Hub no longer accepting GCM API Key

0 votes

Recently, every time I am trying to add or modify the GCM API Key in an Azure Notification Hub, I am getting the following error:

SubCode=40000. Failed to validate credentials with GCM. The remote server returned an error: (401) Unauthorized...

I've also read articles stating that GCM is moving to FCM (Firebase Cloud Messaging). Could this be the cause of my issue? Is Google beginning to no longer support GCM?

Apr 4, 2019 in Azure by sabby
• 4,390 points
1,603 views

1 answer to this question.

0 votes

Please read this: Firebase Cloud Messaging (FCM) is the new version of GCM. So, the important info is that - yes, we should prefer Firebase Console instead of Google Cloud Console. This is also a useful article: Enabling Google Cloud Messaging (Firebase).

So, you need to enable Google Cloud Messaging in Firebase Console for your added Android App.

Let me write it down for you stepwise:

1. Open your Firebase Console

2. Add your Android app in Firebase Console

3. Go to Settings

4. Click on CLOUD MESSAGING tab

5. Take Legacy Server key and use it in Azure Push Notification Service for Google(GCM) settings

6. Save it

This article will help you in creating a Notification Hub Service in Azure and connecting your Android or IOS App to Firebase Console etc.

Hope this helps :)

To know more about Azure, join Azure course today.

Thank you!!

answered Apr 4, 2019 by Prerna
• 1,960 points

Related Questions In Azure

0 votes
1 answer

How to handle payload formats for both iOS and Android through the Azure Notification Hub?

I think your solution is feasible and ...READ MORE

answered Jul 9, 2019 in Azure by Perry
• 17,100 points

edited Oct 6, 2021 by Sarfaraz 1,579 views
+1 vote
2 answers

How do I establish an connection to Azure IoT Hub? Say a connection like MQTT/AMQP using Python.

Azure IoT Hub comes with 3 SDK's: Service SDK Device ...READ MORE

answered Apr 13, 2018 in Azure by null_void
• 3,220 points
1,909 views
0 votes
1 answer

Is there a logical difference between WebApp and API app in Azure?

Basically there was only minute differences between ...READ MORE

answered Apr 27, 2018 in Azure by null_void
• 3,220 points
927 views
0 votes
1 answer

How can i upload to Azure Blob storage with Shared Access key?

For GetBlobReferenceFromServer to work, the blob must be present ...READ MORE

answered Jun 12, 2018 in Azure by club_seesharp
• 3,450 points
3,340 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points
2,356 views
0 votes
1 answer

Azure Storage Emulator shows error.

This blog might help with your query: http://blog.smarx.com/posts/windows-azure-storage-emulator-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process Also, ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
1,405 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

Azure blobs can be downloaded in four ...READ MORE

answered Mar 16, 2019 in Azure by Prerna
• 1,960 points
3,252 views
0 votes
1 answer

How to debug Azure 500 internal server error?

You can simply turn off custom error in ...READ MORE

answered Mar 29, 2019 in Azure by Prerna
• 1,960 points
4,530 views
0 votes
1 answer

SQL Azure Database: Unable to restore bacpac due to foreign key conflict.

Since tha bacpac file is not transactional, ...READ MORE

answered Apr 2, 2019 in Azure by Prerna
• 1,960 points
2,525 views
0 votes
1 answer

How to add a body to a HttpWebRequest that is being used with the Azure Service management API?

The following code should help: byte[] buf = ...READ MORE

answered Apr 3, 2019 in Azure by Prerna
• 1,960 points
2,001 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP