c# - Amazon Simple Notification Service "push"可以通知到桌面客户端吗?

标签 c# amazon-web-services push-notification amazon-sns

Amazon Simple Notification Service 能否将通知“推送”到桌面客户端?这可能是一个没有轮询的真正推送吗?

最佳答案

不,这(还)不是开箱即用的 - Amazon SNS确实有效 publishers sending messages to topics ,然后将它们推送到端点 subscribed to this topic . Subscribe API 当前可用的协议(protocol)是:

  • http -- 通过 HTTP POST 传递 JSON 编码的消息
  • https -- 通过 HTTPS POST 传递 JSON 编码的消息
  • 电子邮件 -- 通过 SMTP 传递消息
  • email-json -- 通过 SMTP 传递 JSON 编码的消息
  • 短信 -- 通过短信发送消息[目前仅限于美国地区]
  • sqs -- 将 JSON 编码的消息传送到 Amazon SQS 队列

因此,您目前最接近桌面客户端的推送通知是电子邮件,尽管通过将 HTTP 发布到相应的 Web 服务来构建自定义通知应该相对容易,这反过来可以促进 WebSocketGrowl等等

祝你好运!

关于c# - Amazon Simple Notification Service "push"可以通知到桌面客户端吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9396138/

相关文章:

c# - 调用包含来自 MVC Controller 的异步调用的服务的正确模式

c# - Office 365 电子邮件观察器

c# - C#.net 中的 XML 数据库

java - 在 mailgun 的发送电子邮件 API 的发布请求期间,它显示使用 java web 应用程序的错误

amazon-web-services - 更改已完成的 AWS Spot 请求的中断行为

ios - 使用 GCM 的 Swift 远程推送通知

c# - 哈希表或字典查找时间

php - Service Worker 中的 XMLHttpRequest

push-notification - 使用 react native 获取设备 token

amazon-web-services - 如何从 AWS lex 中的意图 A 调用意图 B?