Send Push Notification via Firebase by Postman

Updated 28 January 2019

Save

Send Push Notification via Firebase by Postman

If you want to send push notification from your server using the firebase console, first you can check it is working or not in Postman. you have entered this Url ( https://fcm.googleapis.com/fcm/send), then add the headers to it.

1 Content-Type application/json

2 Authorization key=your server key or legacy key. For more information check the screenshot

 

There two ways to send the push notification

Note:-

1 Send to a single user. you have to add this content to the body.

2 Send to a firebase topic. you have to add this content to the body.

 

author
. . .

Leave a Comment

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


12 comments

  • Navdeep Agrawal
    Hi,
    It is working fine at my side but in some android devices we are not getting notification.
    please resolve my issues.
    • Aman Gupta (Moderator)
      Some devices are running on the Android Oero( version 8<= ), you have to implement the Notification channel to get the notification on that devices. Go to this blog: https://mobikul.com/android-push-notification-channels/
  • Pavan A Kumar
    sir , having problem with send via topic,says Invalid regeistration
    • bhavuk chawla (Moderator)
      recheck your Sender ID
      • Sanjay
        is it on app side or postman side(because in postman code there is no sender id). You can reply me on my gmail account.
  • Gopal
    Very useful tutorial
  • mani
    Thanks, you so much for saving my time
  • Farhan
    i have successfully send push notification with postman to single device thanks to you. To send to topic, do i have to store the data somewhere and tied it to the token?
    • bhavuk chawla (Moderator)
      no, you don’t have to store data for a topic, a topic is basically used for sending notification for a number of people and you can create multiple topic for a different group of people https://firebase.google.com/docs/cloud-messaging/ios/topic-messaging
  • farzan
    this is very help full thank to all developer who help each other
  • Apurba Podder
    Thanks, It’s Working.
  • Muthukumar
    You save my day thank you so much. I have searched lot your simple and clean solution worked. Keep doing rock…
  • Start a Project


      Message Sent!

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

      Back to Home