Send FCM Notifications Using Postman

Hello Friends, In this article, we will discuss how to send FCM notifications without coding. in this article, we discuss how to send FCM notifications using postman.

Many mobile developers face one problem during the development of Firebase Push Notification functionality and the scenario is like: Whenever any user insert or update data on the website then we have to show notification in Mobile App, but still, that module is under development from the WEB/API. So QUESTION is HOW we can Test this Notification functionality. so today I am providing the solution for this problem. we send notifications using postman to specific FCM tokens. so let’s start,

Step 1 :
Select POST type and enter request endpoint URL as https://fcm.googleapis.com/fcm/send

Step 2:
Set Authorization Header and Content-Type.

Authorization: key=<server_key> and Content-Type: application/json

Note: You have to copy Legacy Server Key from Firebase Console > Project Settings > Cloud Messaging

Step 3:
Now Select Body > raw > JSON(application/json) and add following JSON object:

{
 "to" : "<YOUR FCM TOKEN>",
 "notification" : {
   "title": "Title of Your Notification"
   "body" : "Body of Your Notification"
 },
 "data" : {
   "key_1" : "Value for key_1",
   "key_2" : "Value for key_2"
 }
}

Now You can send a notification on your device Click on Send button in postman.

I hope this article helps you and you will like it.

Submit a Comment

Your email address will not be published.

Subscribe

Select Categories