Firebase Cloud Messaging (Fcm) API with .NET
dotnet add package Fcm --version 1.2.0
namespace Fcm {
internal class Program {
static void Main(string[] args) {
var fcm = new Fcm();
fcm.SetProjectId("project id");
fcm.SetApiKey("api key");
fcm.Send(new() { Message = new() { Token = "device id", Notification = new() { Title = "title", Body = "body" } } });
}
}
}