평범한 개발자 행복한 가족, 패밀리그램

개발/안드로이드

Curl을 이용한 안드로이드 GCM 전송

패밀리그램 2016. 11. 30. 22:44

안드로이드 GCM 개발 시 

Command Line 을 이용하여 

Push를 전달 할 수 있다.


curl --header "Authorization: key=XXXXXXXXXXXX" --header "Content-Type: application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"fs...Tw:APA...SzXha\"]}"


Google Developer Push Notification

반응형