如何根据存储在数据库中的dateTime发送推送通知 [英] How to send push notification according to dateTime which is stored in database

查看:139
本文介绍了如何根据存储在数据库中的dateTime发送推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要概念上的帮助。

我在asp.net MVC中创建了一个Web应用程序,根据日期时间创建计划(就像提醒应用程序一样)并将此信息存储在数据库中。现在我想在该日期和时间向用户发送消息(不是手动的。

用户意味着手机应用程序(我创建的应用程序)用户,手机将接收推送。用户不关心我的网络应用程序它是一个控制面板。

通常我通过从Web应用程序运行脚本手动向用户设备发送推送通知,它可以发送即时通知,但我需要根据时间表自动发送。

我该怎么做???

I need conceptual help.
I've a web application in asp.net MVC that create schedule (just like reminder application) according to date time and store this information in database. Now I would like to send message to user on that date and time(not manually.
Users means mobile phone app (My created app) user, phone will receive push. user not concerned about my web application it a control panel.
Usually i send push notification manually to user device by running a script from web application, It can send instant notification but i need to send it according to time schedule automatically.
How can i do this???

推荐答案

将你的应用程序变成一个滴滴钟是不是一个好主意(浪费)资源)

我会检查两个选项:

1.创建Windows服务,或使用现有服务...

(查看这些:

https://msdn.microsoft .com / zh-CN / library / windows / apps / hh913756.aspx [ ^ ]

https://msdn.microsoft.com/en-us/library/windows/apps/hh465460.aspx [ ^ ])

2.使用SQL Service Broker发送消息(我认为这更好,因为您的数据已存在于数据库中): https:// msdn。 microsoft.com/en-us/library/bb522893.aspx [ ^ ]
It is not a good idea to turn your application into a ticking-clock for such purpose (waste of resources)
I would examine two options:
1. Create a Windows service, or use an existing service for the same...
(Check these:
https://msdn.microsoft.com/en-us/library/windows/apps/hh913756.aspx[^]
https://msdn.microsoft.com/en-us/library/windows/apps/hh465460.aspx[^])
2. Use SQL Service Broker to send messages (I think this is better as your data already in the DB): https://msdn.microsoft.com/en-us/library/bb522893.aspx[^]


这篇关于如何根据存储在数据库中的dateTime发送推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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