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 in Azure by sabby
• 4,370 points
179 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 :)

answered Apr 4 by Prerna
• 1,940 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 8 in Azure by Perry
• 17,090 points
128 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
636 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 26, 2018 in Azure by null_void
• 3,220 points
54 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
928 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

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

answered Mar 6 in Azure by Prerna
• 1,940 points
398 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 15 in Azure by Prerna
• 1,940 points
173 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

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

answered Mar 15 in Azure by Prerna
• 1,940 points
69 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 in Azure by Prerna
• 1,940 points
555 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 in Azure by Prerna
• 1,940 points
198 views
0 votes
1 answer