Created
May 23, 2018 18:27
-
-
Save parthdave93/0069960c5d98c7414f9ba3a7e63ae264 to your computer and use it in GitHub Desktop.
Firebase Push Notification Testing Using Postman collection v2.1.0
This file contains 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
{ | |
"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