Adding Google Notification Hub Error to Google GCM Api

We are trying to add our GCM API key to the azure notification hub, and we get the following error:

subcode = 40,000. Failed to verify credentials using GCM. Error. The remote server returned an error: (401) Unauthorized ... TrackingId: 410c0e33-0c38-1823-8a62-2519627c76a2_M1_G19, TimeStamp: 9/19/2014 10:08:32 AM

We set our GCM API key to resolve any IP address, and we also tried to register from the code as shown below, but with the same error:

  NamespaceManager mgr = NamespaceManager.CreateFromConnectionString(conn);
  var hub = mgr.GetNotificationHub("<hubname>");


  hub.GcmCredential = new GcmCredential("<apikey>");
  mgr.UpdateNotificationHub(hub);

Is something completely obvious missing here?

+4
source share
4 answers
SubCode=40000. Failed to validate credentials with GCM.

This will probably fix this error:

SERVICES API Google:

  • Google cloud messaging android
+8

CrusherJoe 100% , - , . . enter image description here

+2

, , firebase, google.

, cog → . . , .

U0lKf.png

+2

Some users may not have a verified or registered domain.

Using webmaster tools, you can check and register your domain.

Go to Google Dev Console -> your project -> API and Auth -> Push -> Click "Details" for the webmaster

0
source

All Articles