如何在不使用任何triger事件的情况下每天向移动应用发送通知消息? [英] How to send notification messages to mobile apps daily,with out using any triger event ?

查看:48
本文介绍了如何在不使用任何triger事件的情况下每天向移动应用发送通知消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要求根据用户的时区将通知发送给朋友手机。我将以UTC + 5:30的形式在我的应用程序数据库中使用时区,有些事情是这样的。将有来自不同时区的用户。因此,我需要将用户手机的生日通知等通知发送给各自时区的朋友。



如何在不使用调度程序的情况下实现此功能。?除了调度程序之外是否还有其他选择



例如1. 3个用户A,B,C和所有3个是彼此的朋友,每个用户都是不同的时区考虑印度的A,美国的B和欧洲的C. 2.假设在2014年8月21日是A的生日,我应该在2014年8月21日00:01(晚上12点)向B和C发送生日通知,并且该通知应该到达B和C根据各自的时区而不是按照A的时区。因此,这是按照用户时区发送推送通知的要求。

I had a requirement to send the notification to friends mobiles depending on the users time zones. I will be having the timezones in my application database in the form of UTC+5:30, some thing like this. there will be users from different time zones. So, i need to send the notificatons like the birthday notifications of user mobiles to his friends in their respective time zones.

How can i achieve this functionality with out using schedulers.? Is there any other alternative other than Schedulers

For Example 1. 3 users A , B, C, and all 3 are friends to each other and each user are in different time zones consider A in India, B in US and C in Europe. 2. Let's say on 21-08-2014 is A's birthday and i should be sending an birthday notification to B and C on 21-08-2014 at 00:01 (12 'o clock in the night) and that notification should reach B and C as per their respective time zones but not as per A's time zone. So, this is the requirement of sending push notifications as per the users time zone.

推荐答案

这是您需要的:



1.为所有用户获取用户时区。

2.有一个Windows服务/计划任务,查找在给定日期有生日的用户。此检查必须确保满足时区要求。

3.使用Web服务向Windows服务中的移动设备发送通知。
Here is what you need:

1. Get user time zones for all users.
2. Have a windows service/scheduled task that looks for users that have birthday at a given day. This check must ensure time zones are catered for.
3. Send notifications using web service to mobile devices from your windows service.


这篇关于如何在不使用任何triger事件的情况下每天向移动应用发送通知消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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