前回やったpush通知の続き。
スポンサーリンク
TODO notifyの部分にNotification処理を追加する
若干被っている部分もあるので臨機応変に。
確認方法はこんな感じで
curl --header "Authorization: key=API KEYを入れる" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"Logに表示されたidを入れる\"],\"data\":{\"message\":\"Test Notification\"}}"
logcatと端末のステータスバーに「Test Notification」と出てくればOK!