因為新版的GCM改過許多
以前舊版的程式跟現在差了許多
而且Google平台上的操作方式也不同
https://developers.google.com/cloud-messaging/android/client
我照著上面的方式做完了 也有成功push notification在手機端
不過我想要使用GCM HTTP connection
https://developers.google.com/cloud-messaging/
send的網頁是https://gcm-http.googleapis.com/gcm/send
還有設定key 但是只有device id 我不知道該去哪看
https://developers.google.com/cloud-messaging/http
上面這網頁的「Checking the validity of an API key」部分
使用curl 來 send message
=======================================================
# api_key=YOUR_API_KEY
# curl