Jenkins

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.

Jignesh Patel

Jignesh Patel is a Senior Full Stack .Net Developer has extensive experience with designing and developing enterprise-scale applications. He has good skills in ASP.NET C#, ASP.NET MVC, AngularJS, Angular, Nodejs, Web API, EPPlus, SQL, Entity Framework, JavaScript, Azure Web Jobs, Microsoft Graph API, etc.

Recent Posts

Testing hk

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Operation

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

TETS NEW

test

3 years ago