GlobalNotification 1.0.3

dotnet add package GlobalNotification --version 1.0.3
                    
NuGet\Install-Package GlobalNotification -Version 1.0.3
                    
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="GlobalNotification" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GlobalNotification" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="GlobalNotification" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GlobalNotification --version 1.0.3
                    
#r "nuget: GlobalNotification, 1.0.3"
                    
#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.
#:package GlobalNotification@1.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GlobalNotification&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=GlobalNotification&version=1.0.3
                    
Install as a Cake Tool

๐Ÿ“ฆ 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.Auth
  • FastMember
  • System.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.

๐Ÿ‘ค Author Suraj Singh contact | GitHub | LinkedIn

Product 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. 
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
1.0.3 290 8/6/2025
1.0.2 249 8/4/2025
1.0.1 248 8/4/2025
1.0.0 241 8/4/2025