Last active
June 24, 2019 08:42
-
-
Save MTattin/960d94ad31b7e981ccedb304d364991e to your computer and use it in GitHub Desktop.
Firebase のプッシュ通知をcurlで実行 ref: https://qiita.com/MTattin/items/e6ebb18ec620ed89425e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--header "Authorization: key=ご自身のAPI_KEY" \ | |
--header Content-Type:"application/json" \ | |
https://fcm.googleapis.com/fcm/send \ | |
-d "{ | |
\"to\" : \"/topics/何か適当に\", | |
\"time_to_live\" : 0, | |
\"restricted_package_name\" : \"bundle id\", | |
\"notification\" : { | |
\"sound\" : \"default\", | |
\"badge\" : \"1\", | |
\"body_loc_key\" :\"KEY_ID\", | |
\"body_loc_args\" : [\"置き換え文字\"], | |
\"title_loc_key\" : \"TTL_KEY_ID\", | |
\"title_loc_args\" : [\"置き換え文字\"], | |
} | |
}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment