如何实现推送通知 [英] How to implement push notifications

查看:123
本文介绍了如何实现推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用程序中实现推送通知,只要表格被其他用户更新(通过UI更新一些记录)。



我一直在谷歌搜索早上,但我无法继续前进。



我尝试过的事情:



我已经找到一些建议,如果它的SQL服务器使用带有SignalR的sqlDependency类,但我不使用SQL服务器。



请建议我,如何在我的应用程序中实现

解决方案

请参阅解决方案此repo: GitHub - Harmen1969 / SignalR-Postgresql-:使用SignalR和PostgreSQL的实时推送通知 [ ^ ]


推送通知特定于您的Web开发框架。因为服务器维护一个开放端口,用于通知推送给客户端。在简单的Web界面上,ASP.NET SignalR就足够了,您可以使用JavaScript来处理新消息。



你需要的东西已经解决了(以一般方式)在这个链接上,你只需要在更改事件上触发消息。

教程:入门使用SignalR 2和MVC 5 | ASP.NET站点 [ ^ ]



但是,如果您的意思是原生移动通知,那么也是特定于设备的,例如Google Firebase for Android等。你需要单独的iOS,Windows Phone和Kindle等键。它们都有自己的实现和访问方法来通知。如果你知道怎么做,你可能会对它们感兴趣,

Firebase |应用程序的成功变得简单 [ ^ ]



Microsoft Azure允许您使用集线器启用跨设备推送通知。通过一个门户使用他们的密钥。

通知中心 - 移动推送通知| Microsoft Azure [ ^ ]

I need to implement push notification in my application, whenever a table gets updated by other user(updating some records through UI).

I have been googling from the morning, but I cant able to proceed further.

What I have tried:

I have found some recommendations to use sqlDependency class with SignalR if its SQL server, but I'm not using SQL server.

kindly suggest me, how to implement in my application

解决方案

See for solution this repo: GitHub - Harmen1969/SignalR-Postgresql-: Real time push notification using SignalR and PostgreSQL[^]


Push notifications are specific to your web development framework. Because it is the server maintaining an open port for pushing the notification to client. On simple web interface, ASP.NET SignalR is enough and you can use JavaScript to handle new messages.

What you need is already solved (in a general way) on this following link, you just need to trigger the message on change event.
Tutorial: Getting Started with SignalR 2 and MVC 5 | The ASP.NET Site[^]

However if you mean native mobile notifications, then are also device specific, such as Google Firebase for Android etc. You would require separate keys for iOS, Windows Phone and Kindle etc. They all have their own implementations and access methods for notifications. You might be interested in them if you know how-to,
Firebase | App success made simple[^]

Microsoft Azure allows you to use a hub to enable push notifications cross-device. using their keys through one portal.
Notification Hubs - Mobile push notifications | Microsoft Azure[^]


这篇关于如何实现推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆