Skip to content

Instantly share code, notes, and snippets.

@parthdave93
Created May 23, 2018 18:27
Show Gist options
  • Save parthdave93/0069960c5d98c7414f9ba3a7e63ae264 to your computer and use it in GitHub Desktop.
Save parthdave93/0069960c5d98c7414f9ba3a7e63ae264 to your computer and use it in GitHub Desktop.
Firebase Push Notification Testing Using Postman collection v2.1.0
{
"info": {
"name": "firebase",
"_postman_id": "e80f736a-f80e-8d91-436d-c633be4e23b2",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "https://fcm.googleapis.com/fcm/send",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "key=AIzaSyAa5MqdArgkCGxIwPuqgfTiDK7bwvkCuSo"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"to\" : \"push_token\",\n \"collapse_key\" : \"type_a\",\n \"notification\" : {\n \"body\" : \"First Notification\",\n \"title\": \"Collapsing A\",\n \"sound\": \"notification\",\n \"click_action\": \"OPEN_ACTIVITY_1\",\n \"icon\":\"notification_badge\",\n \"color\":\"#FF0000\"\n },\n \"data\" : {\n \"AlertMessage\": {\n \"MessageType\": \"CustomAlertNotification\",\n \"message_title\": \"message\",\n \"content\": \"content\",\n }\n}\n}"
},
"url": {
"raw": "https://fcm.googleapis.com/fcm/send",
"protocol": "https",
"host": [
"fcm",
"googleapis",
"com"
],
"path": [
"fcm",
"send"
]
},
"description": ""
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment