{"action":"created","issue":{"url":"https://api.github.com/repos/google/gcm/issues/55","labels_url":"https://api.github.com/repos/google/gcm/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/google/gcm/issues/55/comments","events_url":"https://api.github.com/repos/google/gcm/issues/55/events","html_url":"https://github.com/google/gcm/issues/55","id":66874095,"number":55,"title":"Format of request to `/gcm/v1/device/register/`","user":{"login":"iqbalhusen","id":7779721,"avatar_url":"https://avatars.githubusercontent.com/u/7779721?v=3","gravatar_id":"","url":"https://api.github.com/users/iqbalhusen","html_url":"https://github.com/iqbalhusen","followers_url":"https://api.github.com/users/iqbalhusen/followers","following_url":"https://api.github.com/users/iqbalhusen/following{/other_user}","gists_url":"https://api.github.com/users/iqbalhusen/gists{/gist_id}","starred_url":"https://api.github.com/users/iqbalhusen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iqbalhusen/subscriptions","organizations_url":"https://api.github.com/users/iqbalhusen/orgs","repos_url":"https://api.github.com/users/iqbalhusen/repos","events_url":"https://api.github.com/users/iqbalhusen/events{/privacy}","received_events_url":"https://api.github.com/users/iqbalhusen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T12:46:15Z","updated_at":"2015-06-13T18:57:58Z","closed_at":null,"body":"Could anyone please reply a `curl` `POST` request to register a device? And how the `name` field in `Device` model is generated?"},"comment":{"url":"https://api.github.com/repos/google/gcm/issues/comments/111740528","html_url":"https://github.com/google/gcm/issues/55#issuecomment-111740528","issue_url":"https://api.github.com/repos/google/gcm/issues/55","id":111740528,"user":{"login":"mnemonicflow","id":528448,"avatar_url":"https://avatars.githubusercontent.com/u/528448?v=3","gravatar_id":"","url":"https://api.github.com/users/mnemonicflow","html_url":"https://github.com/mnemonicflow","followers_url":"https://api.github.com/users/mnemonicflow/followers","following_url":"https://api.github.com/users/mnemonicflow/following{/other_user}","gists_url":"https://api.github.com/users/mnemonicflow/gists{/gist_id}","starred_url":"https://api.github.com/users/mnemonicflow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnemonicflow/subscriptions","organizations_url":"https://api.github.com/users/mnemonicflow/orgs","repos_url":"https://api.github.com/users/mnemonicflow/repos","events_url":"https://api.github.com/users/mnemonicflow/events{/privacy}","received_events_url":"https://api.github.com/users/mnemonicflow/received_events","type":"User","site_admin":false},"created_at":"2015-06-13T18:57:58Z","updated_at":"2015-06-13T18:57:58Z","body":"@iqbalhusen You can't register devices on the server. The Google Cloud Services does it on your behalf **on the client**, if you tell it to. You get back a registration token that you send to your server, and from your server you tell GCM to send a message to the device using that token and an API key that authenticates you. As per https://developers.google.com/cloud-messaging/http"}}