Send Push Notifications via Firebase by Postman

Updated 11 January 2024

Save

In this article, you will learn how to send Push Notifications via Firebase by Postman.

You can push notifications from the Firebase console as well as from the Postman using the Firebase Cloud Messaging API.

Before proceeding further you should know how to integrate Push Notification in iOS. So please go through our article on Push Notification in iOS, where we have explained about integrating the Push Notifications using Firebase.

Implementation

Send Push Notifications via Firebase by Postman requires you to have the Postman application installed on your system.

You will test the notifications either using the device token or topic. The receiving app will have a particular Firebase device token which you can use to send the notification on that device. Also, the receiving application will have subscribed to the topic so that you can send the notification to that topic and will be received by any user that has installed that application.

If you want to send push notifications from your server using the Firebase console, first you can check whether it is working or not in Postman.

The FCM request used to send the notification is https://fcm.googleapis.com/fcm/send, the request type is POST.

Inside the Body of the request use the below JSON containing all the details. Below request will send the notification to a single device.

The authorization key will be your server key which you will get from the Firebase console. For more information check the below image.

Send Push Notifications via Firebase by Postman

Note:-

You can send notifications to multiple users by sending them to a particular topic that your application is subscribed for.

Here is an example how you can achieve that.

Conclusion

There are multiple ways to push notifications to the user’s device, sending via Firebase using Postman is one of them.

To download the Postman click here.

You may also check ourĀ Flutter app development page.

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


14 comments

  • Navdeep Agrawal
    • Aman Gupta (Moderator)
  • Pavan A Kumar
    • bhavuk chawla (Moderator)
      • Sanjay
  • Gopal
  • mani
  • Farhan
    • bhavuk chawla (Moderator)
  • farzan
  • Apurba Podder
  • Muthukumar
  • Prashanth
    • jitendra kumar (Moderator)
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home