XingeApp 1.1.1
Additional Details
腾讯信鸽推送平台已关闭:https://tencenbigdata.gitbooks.io/xg-docs/content/migration_guide/summary.html
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package XingeApp --version 1.1.1
NuGet\Install-Package XingeApp -Version 1.1.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="XingeApp" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XingeApp --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: XingeApp, 1.1.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.
// Install XingeApp as a Cake Addin #addin nuget:?package=XingeApp&version=1.1.1 // Install XingeApp as a Cake Tool #tool nuget:?package=XingeApp&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xinge-api-C#
概述
信鸽 是腾讯云提供的一款支持百亿级消息的移动App推送平台,开发者可以调用C# SDK访问信鸽推送服务。
引用SDK
直接安装nuget包:XingeApp
从1.1.1版本开始,HTTP请求开始改用IHttpClientFactory实现高效的HTTP连接管理,并且基于Task实现了异步方法。
在ASP.NETCore项目内可通过依赖注入方式使用:
1.在Startup.cs的ConfigureServices内添加
services.AddHttpClient();
services.AddSingleton<IXingeApp, XingeApp.XingeApp>();
2.在你的使用的Service或Controller的构造函数内注入IXingeApp接口;
此外对于部分未传入AppId/AccessKey/SecretKey的方法,实现类内部通过appsettings.json读取相关配置,配置结构如下:
"XingeApp": {
"AppId": "000000",
"AccessKey": "00000000000",
"SecretKey": "0000000000000000000000"
}
接口说明
信鸽提供的主要推送和查询接口包括3种
创建推送任务
- pushSingleDevice 推送消息给单个设备
- pushSingleAccount 推送消息给单个账号
- pushAccountList 推送消息给多个账号
- pushAllDevice 推送消息给单个app的所有设备
- pushTags 推送消息给tags指定的设备
- createMultipush创建大批量推送消息(C# SDK 1.2.0+ 不在支持)
- pushAccountListMultiple推送消息给大批量账号(可多次)(C# SDK 1.2.0+ 不在支持)
- pushDeviceListMultiple推送消息给大批量设备(可多次)(C# SDK 1.2.0+ 不在支持)
异步查询推送状态
- queryPushStatus查询群发消息发送状态
- cancelTimingPush取消尚未推送的定时消息
查询/更改账户和标签
- queryTags 查询应用的tags
- BatchSetTag 批量为token设置标签
- BatchDelTag 批量为token删除标签
- queryTokenTags 查询token的tags
- queryTagTokenNum 查询tag下token的数目
- deleteTokenOfAccount 删除account绑定的token
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.Extensions.Http (>= 3.0.1)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.