{"action":"created","issue":{"url":"https://api.github.com/repos/Redth/PushSharp/issues/574","labels_url":"https://api.github.com/repos/Redth/PushSharp/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/Redth/PushSharp/issues/574/comments","events_url":"https://api.github.com/repos/Redth/PushSharp/issues/574/events","html_url":"https://github.com/Redth/PushSharp/issues/574","id":118943970,"number":574,"title":"GCM Authorization Failed","user":{"login":"egarim","id":2864804,"avatar_url":"https://avatars.githubusercontent.com/u/2864804?v=3","gravatar_id":"","url":"https://api.github.com/users/egarim","html_url":"https://github.com/egarim","followers_url":"https://api.github.com/users/egarim/followers","following_url":"https://api.github.com/users/egarim/following{/other_user}","gists_url":"https://api.github.com/users/egarim/gists{/gist_id}","starred_url":"https://api.github.com/users/egarim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egarim/subscriptions","organizations_url":"https://api.github.com/users/egarim/orgs","repos_url":"https://api.github.com/users/egarim/repos","events_url":"https://api.github.com/users/egarim/events{/privacy}","received_events_url":"https://api.github.com/users/egarim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T23:54:20Z","updated_at":"2015-11-26T14:18:20Z","closed_at":null,"body":"I got \"GCM Authorization Failed\" , when I try to send push notifications to android, here is the constructor I'm using for the gcm configuration:\r\n\r\nGcmConfiguration newGcmConfiguration = new GcmConfiguration(\"app id\", \"api key\",\"testPush.TestPush\");"},"comment":{"url":"https://api.github.com/repos/Redth/PushSharp/issues/comments/159925755","html_url":"https://github.com/Redth/PushSharp/issues/574#issuecomment-159925755","issue_url":"https://api.github.com/repos/Redth/PushSharp/issues/574","id":159925755,"user":{"login":"egarim","id":2864804,"avatar_url":"https://avatars.githubusercontent.com/u/2864804?v=3","gravatar_id":"","url":"https://api.github.com/users/egarim","html_url":"https://github.com/egarim","followers_url":"https://api.github.com/users/egarim/followers","following_url":"https://api.github.com/users/egarim/following{/other_user}","gists_url":"https://api.github.com/users/egarim/gists{/gist_id}","starred_url":"https://api.github.com/users/egarim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egarim/subscriptions","organizations_url":"https://api.github.com/users/egarim/orgs","repos_url":"https://api.github.com/users/egarim/repos","events_url":"https://api.github.com/users/egarim/events{/privacy}","received_events_url":"https://api.github.com/users/egarim/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T14:18:20Z","updated_at":"2015-11-26T14:18:20Z","body":"Hi Redth, here is the snippet I'm using, if I only use the api key constructor I get a 400 error bad request\r\n\r\nGcmConfiguration newGcmConfiguration = new GcmConfiguration(\"my api key here\");\r\n\r\n\r\n            GcmServiceBroker Broker = new GcmServiceBroker(newGcmConfiguration);\r\n\r\n            // Wire up events\r\n            Broker.OnNotificationFailed += (notification, exception) =>\r\n            {\r\n                Console.WriteLine(\"Notification Failed!\");\r\n            };\r\n            Broker.OnNotificationSucceeded += (notification) =>\r\n            {\r\n                Console.WriteLine(\"Notification Sent!\");\r\n            };\r\n\r\n            // Start the broker\r\n            Broker.Start();\r\n\r\n           \r\n\r\n            GcmNotification newGcmNotification = new GcmNotification();\r\n            newGcmNotification.Data =JObject.Parse(\"{\\\"alert\\\":\\\"Hello World!\\\",\\\"badge\\\":7,\\\"sound\\\":\\\"sound.caf\\\"}\");\r\n            Broker.QueueNotification(newGcmNotification);\r\n\r\n            Console.ReadLine();\r\n            // Stop the broker, wait for it to finish   \r\n            Broker.Stop();\r\n"}}