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?
source
share