[问题] gcm REGISTERED DEVICE ID要在哪看呢?

楼主: dwadefans (wade)   2015-08-02 19:28:01
因为新版的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
楼主: dwadefans (wade)   2015-08-02 19:46:00
找到了 在官方程式RegistrationIntentService里面的57行 有用Log印出GCM Registration Token:https://goo.gl/oNZM0y
作者: ckvir (ckvir)   2015-08-02 20:50:00
用 parse 比较简单
楼主: dwadefans (wade)   2015-08-02 21:22:00
可是我没有要使用到parse服务呢

Links booklink

Contact Us: admin [ a t ] ucptt.com