Created
November 9, 2017 13:29
-
-
Save vikmarino/28c653ee33b44cac1165e45a41049fcf to your computer and use it in GitHub Desktop.
Send push notifications server firebase scripts
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
# http -v https://fcm.googleapis.com/fcm/send\ | |
# Content-Type:application/json\ | |
# Authorization:key=AIzaSyBHrVwAoCWYUKj85r4eZap56mJH2Rc6IkL\ | |
# to=c3bKqL80zZA:APA91bENswXWWp9Lokh9hnESqnLqRAWNT5KZmoE_bPSEyjENJgq4J0D6KKOJRyEFbWxP5oayOvYf3UjBnXaxWocO8p1OeFOJkOEFqe922f7BZdBzZKCAfWAy72tJKv5osK08Hm1MEHGh\ | |
# notification:=@push_firebase_notification.json | |
# http -v https://fcm.googleapis.com/fcm/send\ | |
# Content-Type:application/json\ | |
# Authorization:key=AIzaSyBHrVwAoCWYUKj85r4eZap56mJH2Rc6IkL\ | |
# to=c3bKqL80zZA:APA91bENswXWWp9Lokh9hnESqnLqRAWNT5KZmoE_bPSEyjENJgq4J0D6KKOJRyEFbWxP5oayOvYf3UjBnXaxWocO8p1OeFOJkOEFqe922f7BZdBzZKCAfWAy72tJKv5osK08Hm1MEHGh\ | |
# data:=@push_firebase_data.json | |
http -v https://fcm.googleapis.com/fcm/send\ | |
Content-Type:application/json\ | |
Authorization:key=AIzaSyBHrVwAoCWYUKj85r4eZap56mJH2Rc6IkL\ | |
to=ddfRM2PCChc:APA91bEpXCyBAeegTy1oI_FfkxOlrx44iV5-nrOn6kMYaoiJggtLC1XZ-s1mGs_UCTXxp9ZqFsQaINgxV-3UkY4MyTFZ-vOdQHtXMAQ-gQiJwHtwT_xoKQuzyfNslwmd6uNLFIsL3aB2 notification:=@push_firebase_notification.json data:=@push_firebase_notification_and_data_payload.json |
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
{ "data": { | |
"title": "message_title", | |
"message": "message_body" | |
} | |
} |
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
{ | |
"body" : "test body", | |
"title" : "test title", | |
"priority" : "high" | |
} |
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
{ | |
"pw_server_msg_title": "message_title", | |
"pw_server_msg_body": "message_body" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment