GlobalNotification 1.0.3
dotnet add package GlobalNotification --version 1.0.3
NuGet\Install-Package GlobalNotification -Version 1.0.3
<PackageReference Include="GlobalNotification" Version="1.0.3" />
<PackageVersion Include="GlobalNotification" Version="1.0.3" />
<PackageReference Include="GlobalNotification" />
paket add GlobalNotification --version 1.0.3
#r "nuget: GlobalNotification, 1.0.3"
#:package GlobalNotification@1.0.3
#addin nuget:?package=GlobalNotification&version=1.0.3
#tool nuget:?package=GlobalNotification&version=1.0.3
๐ฆ TUBO_Notification
A lightweight .NET library for sending Firebase Cloud Messaging (FCM) push notifications programmatically using service account credentials. Easily integrate notification delivery into your C# applications.
๐ง Features
- โ Send push notifications using FCM v1 API.
- โ Automatically handles access tokens via service account credentials.
- โ
Supports different app types (
tu,bo) for dynamic credential usage. - โ
Converts object lists to XML via
getXmlFromList<T>().
๐ Getting Started
๐ฅ Installation
Install the NuGet package:
dotnet add package GlobalNotification
Or using Visual Studio NuGet Manager.
๐งช Usage
1. Send a Notification
string response = await fcmNotification.SendMessage(
id: "123",
deviceToken: "<DEVICE_TOKEN>",
URL: "https://example.com",
Title: "New Alert",
MSG: "You've got a new message!",
count: 1,
notitype: 101,
apptype: "tu", // or "bo"
click_action: "OPEN_ACTIVITY",
project_id: "your project id"
);
2. Convert List to XML
List<YourClass> items = GetItems();
string xml = fcmNotification.getXmlFromList("Items", items);
3. Get Access Token Only (optional)
string token = await fcmNotification.GetAccessTokenKey("bo");
๐ Dependencies
Google.Apis.AuthFastMemberSystem.Data
๐ Project Structure
TUBO_Notification/
โโโ fcmNotification.cs
โโโ licenses/
โ โโโ LICENSE.txt
โโโ docs/
โ โโโ README.md
๐ Security
Ensure your Firebase service account keys (jsonString and BojsonString) are stored securely and never hardcoded in production.
๐ License
This project is licensed under the MIT License โ see the LICENSE.txt file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- FastMember (>= 1.5.0)
- Google.Apis.Auth (>= 1.70.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.