问题标签 [pushsharp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1633 浏览

pushsharp - notification with pushsharp

I want to implement notification in web application with pushsharp.

I found some sample projects on github for pushspharp they are working.

please help me in getting start to develop small app on notifications with pushsharp.

thanks in advance

0 投票
1 回答
805 浏览

multithreading - 自托管 pushsharp - Events_OnNotificationSendFailure 失败:线程池中没有足够的空闲线程来完成操作

我的 PushSharp 服务是在 Windows 服务中自行托管的,
但不久之后它总是抛出:
Events_OnNotificationSendFailure -异常是“ThreadPool 中没有足够的空闲线程来完成操作”

这样做的正确方法是什么?

}

0 投票
1 回答
1339 浏览

pushsharp - 使用 PushSharp 发送消息时我没有收到响应

我使用 PushSharp 发送推送通知。

我调用 PushService 对象的方法 StopAllServices 让它发送消息。

我假设在 PushService.StopAllServices 完成后,我得到了所有通知对象的响应。

之后我杀死了实例化 PushService 对象的线程。

我注意到有时我在回调函数中没有得到响应。

可能是 StopAllServices 方法不等待所有响应(来自 APNS/GCM)吗?

我需要收到所有通知对象的响应。如何做到这一点?我会很高兴的 sugestions

0 投票
1 回答
475 浏览

mono - 使用 PushSharp 为推送通知注册 MonoDroid 设备

在我的 monodroid 应用程序中,我在使用 pushSharp 为推送通知注册某些设备时遇到问题。我的一般推送通知设置在 SGS2、SGS3 和 Nexus7 等新设备上运行良好,但在运行 2.2 和 2.2.1 的 Legend 和 Hero 上,注册失败(在调试中运行良好)。我已将问题缩小到 StartService 调用:

清单文件看起来不错:

意图看起来很好(act = com.google.android.c2dm.intent.REGISTER pkg = com.google.android.gsf)并且senderId是正确的,但是GCMIntentService OnReceive方法永远不会被触发......

有时使用 logcat 可以看到以下错误消息(尽管不一致):

我不太确定如何解决这个问题,并希望得到任何帮助。

谢谢彼得

0 投票
1 回答
2559 浏览

push-notification - PushSharp 通知错误

使用 PushSharp 时,我不断收到此错误:

有什么想法吗?当您插入手机时,
我使用iTunes 中显示的长 UID。DeviceToken根据 PushSharp Wiki 上的说明导出证书(沙盒)。

0 投票
1 回答
3033 浏览

vb.net - 用于 VB.NET (apple) 的示例 PushSharp 代码

我正在寻找从 VB.NET 应用程序中使用 PushSharp 的答案,并且能够将来自各种来源的一些代码拼凑在一起。没有一个完整的例子来连接回调并使用库发送通知。为了节省时间,我认为发布我的代码会帮助下线的人

0 投票
1 回答
3131 浏览

android - 如何为Android GCM(Pushnotification)集成Push sharp?

我指的是这个链接在android中实现push sharp, https://github.com/Redth/PushSharp#monotouch-and-mono-for-android-client-application-integration

但是给定的代码在 .cs 中,所以请建议如何在 android 中使用这个库,分享任何关于这个的文档。提前致谢。

0 投票
3 回答
8466 浏览

c# - 使用 Push-Sharp 库将 Json 发送到 APNS

我需要像这样将json发送到IOS设备:

我应该使用 AppleNotification 还是 AppleNotificationPayLoad 类?请提供示例代码。这是我现在如何创建通知的示例:

0 投票
1 回答
2253 浏览

asp.net-mvc - Pushsharp 连接失败

所以我在我的 ASP.NET mvc 应用程序中使用 push sharp,但我不断收到连接失败错误。我为 push sharp 安装了 NUGET 包,所以我无法访问源代码。我花了一段时间才意识到我收到了这个错误,因为我有一段时间没有在调试中运行。首先是我得到的错误代码。

PushSharp.Apple.DLL 中发生 PushSharp.Apple.ConnectionFailureException 类型的未处理异常

附加信息:已达到连接到 gateway.sandbox.push.apple.com:2195 的最大尝试次数 (3)!

这是我用于推送通知的代码。它很简单。

我尝试了很多事情,首先我使用了多个证书,包括 pem 文件,但就无效证书而言,它们都没有给我任何错误。

我还手动打开了端口 2195 以允许所有连接,我还尝试了多个连接,其中一个是我的工作连接,过去曾用于推送通知。我不知道可能导致此问题的原因。

0 投票
1 回答
5997 浏览

pushsharp - 使用 PushSharp 的正确方法是什么?

我使用 PushSharp 为一些应用程序发送通知。PushSharp 很棒,它确实简化了推送服务的工作,我想知道使用它的正确方法是什么?我还没有找到关于那个的例子/解释。

现在,当我有消息要发送时,我...

  1. 创建一个 PushSharp 对象
  2. 为所有设备执行 PushService.QueueNotification()
  3. 做一个 PushService.StopAllServices 发送所有排队的消息
  4. 退出方法(并终止 PushService 对象)。

我应该以这种方式工作,还是让这个 PushService 对象保持活动状态并在需要时调用它的方法?

我应该如何使用 PushService 对象来获取未注册的设备 ID?有一个专用实例?

任何建议将不胜感激。