Viklover.WebPush
1.0.1
dotnet add package Viklover.WebPush --version 1.0.1
NuGet\Install-Package Viklover.WebPush -Version 1.0.1
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="Viklover.WebPush" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Viklover.WebPush" Version="1.0.1" />
<PackageReference Include="Viklover.WebPush" />
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 Viklover.WebPush --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Viklover.WebPush, 1.0.1"
#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 Viklover.WebPush@1.0.1
#: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=Viklover.WebPush&version=1.0.1
#tool nuget:?package=Viklover.WebPush&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WebPush
Simple implementation of Web Push notification protocol for .NET.
📚 Features
- No external dependencies — only built-in .NET libraries
- Fully asynchronous API
🚀 Quick start
Installation:
dotnet add package Viklover.WebPush --version 1.0.0
// Use subscription received from browser
var subscription = new WebPushSubscription(
endpoint: "https://push.example.com/...",
auth: "base64-auth-secret",
p256dh: "base64-public-key"
);
// Use your VAPID keys
var vapidKeys = new WebPushVapidKeys(
publicKey: "base64-vapid-public-key",
privateKey: "base64-vapid-private-key"
);
// Send notification
var client = new WebPushClient(vapidKeys, notificationTTL: TimeSpan.FromHours(24));
await client.SendAsync(subscription, "Hello user's service worker!", CancellationToken.None);
🛠️ Contribution
Contributions are welcome! Feel free to:
- Report bugs 🐛
- Suggest features 💡
- Submit pull requests 🔄
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- System.Security.Cryptography.Pkcs (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.