FS.Push
9.0.0
dotnet add package FS.Push --version 9.0.0
NuGet\Install-Package FS.Push -Version 9.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="FS.Push" Version="9.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FS.Push --version 9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FS.Push, 9.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 FS.Push as a Cake Addin #addin nuget:?package=FS.Push&version=9.0.0 // Install FS.Push as a Cake Tool #tool nuget:?package=FS.Push&version=9.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Changelog
[9.0.0]
- .NET 9 compliant
[8.7.0]
- Refactory sendasync method
- JSON format string result
[8.6.1]
- System.IdentityModel.Tokens.Jwt 8.1.1 → 8.1.2 update
- Minor fix
[8.6.0]
- Api rest policy retry added
- System.IdentityModel.Tokens.Jwt 8.1.0 → 8.1.1 update
[8.5.0]
- Added silent push
[8.4.5]
- Huawei click action fix
[8.4.4]
- Minor fix
[8.4.3]
- Minor fix
[8.4.2]
- Minor fix
[8.4.1]
- Minor fix
[8.4.0]
- Moved 'click action' method into auth classes
[8.3.3]
- Huawei click to action minor fix
[8.3.2]
- Huawei payload minor fix
[8.3.1]
- Minor fix
[8.3.0]
- Added content-available and priority properties
- Renamed Huawei property to Android property
[8.2.0]
- Push object refactory (see example)
- Huawei fix
[8.1.2]
- Minor fix
[8.1.1]
- Minor fix
[8.1.0]
- Added Huawei push service
[8.0.0]
- Firebase push with topics or single device token
Push send example
This is an example of sending a push notification both on Firebase and Huawei. If you want to send a push notification only with Firebase, the HuaweiAuth object must be null, or vice versa
var title = "This is title of push";
var body = "This is a message body";
var pushMessage = new PushMessageModel()
{
Priority = "high",
Notification = new PushNotificationModel()
{
Title = title,
Body = body
},
Android = new PushAndroidConfigModel()
{
Notification = new PushNotificationModel()
{
Title = title,
Body = body
},
Ttl = "86400s",
Priority = "high"
}
};
var pushModel = new PushModel()
{
FirebaseAuth = new PushFirebaseAuthModel()
{
ClientEmail = "firebase_client_email",
ProjectId = "firebase_project_id",
PrivateKey = "firebase_private_key",
Topics = ["topic1", "topic2"]
},
HuaweiAuth = new PushHuaweiAuthModel()
{
ClientId = "huawei_client_id",
ClientSecret = "huawei_client_secret",
Topics = ["topic1", "topic3", "topic4"]
},
Message = pushMessage
};
string[] results = await PushService.SendAsync(pushModel);
Console.WriteLine(results);
Support
If you like this package, please support author offering him a coffe or donate with PayPal
License
MIT License
Copyright (c) 2019 FRΛƝCƎƧCØ ƧØЯRƎƝTIƝØ
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.2.0)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.2.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.2.0)
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.5.0)
- System.IdentityModel.Tokens.Jwt (>= 8.2.0)
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 |
---|---|---|
9.0.0 | 38 | 11/13/2024 |
8.7.0 | 76 | 11/8/2024 |
8.6.1 | 337 | 10/15/2024 |
8.6.0 | 136 | 10/8/2024 |
8.5.0 | 168 | 10/2/2024 |
8.4.5 | 119 | 9/30/2024 |
8.4.4 | 88 | 9/26/2024 |
8.4.1 | 93 | 9/26/2024 |
8.4.0 | 122 | 9/24/2024 |
8.3.3 | 97 | 9/24/2024 |
8.3.2 | 95 | 9/24/2024 |
8.3.1 | 135 | 9/17/2024 |
8.3.0 | 105 | 9/16/2024 |
8.2.0 | 85 | 9/3/2024 |
8.1.2 | 91 | 9/2/2024 |
8.1.1 | 121 | 8/16/2024 |
8.1.0 | 121 | 8/16/2024 |
8.0.0 | 117 | 8/14/2024 |