In developing mobile web backends you might need users to broadcast messages such as push notifications to single or all mobile subscribers from the cloud using services like Firebase Cloud Messaging (FCM).
In this article we will focus on sending push notifications from a .Net application using Firebase.Notification library. This library makes it very easy to send push notifications from Firebase using C#
To begin, download the library from Nuget:
- Install-Package Firebase.Notification -Version 1.0.0
Using the library:
Error Handling and Debugging
Trace errors in your output window, all errors from this library will be captured under the category Firebase.Notification for easy debugging,
- using (var firebase = new Firebase())
- {
- firebase.ServerKey = "{Your Server Key}";
- var id = "{Your Device Id}";
- firebase.PushNotifyAsync(id,"Hello","World").Wait();
- Console.ReadLine();
- }
Trace errors in your output window, all errors from this library will be captured under the category Firebase.Notification for easy debugging,


Deva MittuPosted Aug 20, 2020, 10:48 AM
Why it take more time push notification.
Tom JrPosted Jan 18, 2020, 4:40 PM
How to get {Your Device Id}
sanket shahPosted Dec 6, 2019, 1:55 AM
I am having asp.et web application. I want to send the notifications to the user's mobiles. Do I need to have an separate Android and IOS app? can you please help me on this?
zeinab kamelPosted Sep 12, 2019, 5:31 PM
Device id is mobile? number??
Mohamed ghousePosted Nov 9, 2018, 7:25 AM
Can this support for both IOS and Android devices?
Frank OdoomPosted Jul 21, 2018, 5:17 AM
Thank You Viknaraj
Viknaraj ManogararajahPosted Jul 19, 2018, 6:47 AM
Nice Article...........