PushNotification_dotNET 2.0.0

dotnet add package PushNotification_dotNET --version 2.0.0                
NuGet\Install-Package PushNotification_dotNET -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PushNotification_dotNET" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PushNotification_dotNET --version 2.0.0                
#r "nuget: PushNotification_dotNET, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PushNotification_dotNET as a Cake Addin
#addin nuget:?package=PushNotification_dotNET&version=2.0.0

// Install PushNotification_dotNET as a Cake Tool
#tool nuget:?package=PushNotification_dotNET&version=2.0.0                

Example: class Program { private static readonly PushNotification Notification = PushNotification.GetPushNotification();

static async Task Main(string[] args)
{
	SendNotification();

	await SendAsyncNotificationAsync();

	Console.ReadLine();
}

public static void SendNotification()
{
	string title = "Test Miky";
	string message = "My Message";

	string jsonPathToCredentials = AppDomain.CurrentDomain.BaseDirectory + "key.json"; // Percorso del file JSON delle credenziali
	if (!File.Exists(jsonPathToCredentials))
	{
		Console.WriteLine("[SendNotification] GoogleCredential not found: " + title + " - " + "key.json");
		return;
	}

	string sResponseFromServer = Notification.SendNotification(fcmDeviceId, title, message, jsonPathToCredentials);
	Console.WriteLine(sResponseFromServer);
}

public static async Task SendAsyncNotificationAsync()
{
	string title = "Test Miky";
	string message = "My Message";

	string jsonPathToCredentials = AppDomain.CurrentDomain.BaseDirectory + "key.json"; // Percorso del file JSON delle credenziali
	if (!File.Exists(jsonPathToCredentials))
	{
		Console.WriteLine("[SendNotification] GoogleCredential not found: " + title + " - " + "key.json");
		return;
	}

	string sResponseFromServer = await Notification.SendNotificationAsync(fcmDeviceId, title, message, jsonPathToCredentials);
	Console.WriteLine("response:");
	Console.WriteLine(sResponseFromServer);
}

}

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 89 11/3/2024
1.2.0 486 12/21/2022
1.1.0 517 10/27/2021
1.0.0 1,121 1/17/2019

Awesome application PushNotification utility.