简体   繁体   English

如何在Android中安排通知并在固定时间发送

[英]How to schedule notifications in android and send at fixed time

We have an android and iOS application to which we send around 10 different types of notifications in a day. 我们有一个android和iOS应用程序,每天可以向其发送大约10种不同类型的通知。 Currently we are using an architecture in which we run a cron to schedule the notification at some time time and after that we run a separate cron for sending message. 当前,我们正在使用一种架构,在该架构中,我们运行cron来计划通知,然后在某个时间运行一个单独的cron来发送消息。 The problem being faced is that as the users have increased the scheduling and sending processes take several hours which doesn't allow us to send the notifications at the desired time. 面临的问题是,随着用户数量的增加,日程安排和发送过程将花费几个小时,这使我们无法在所需的时间发送通知。 We are using php and MySQL. 我们正在使用php和MySQL。

Is their some other architecture or technology which would reduce the time being taken for this activity? 他们是否还有其他一些架构或技术可以减少这项活动的时间?
[Edit] This question is concerned more abut the back end architecture that can be used in house depending upon third party unlike that in Is GCM service reliable for large scale push notification? [编辑]这个问题更关注的是可以依赖第三方在内部使用的后端体系结构,这与GCM服务对于大规模推送通知可靠吗?

通过使用BroadCastReceiver您可以安排时间并根据您在Receiver中给定的特定时间发送通知。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM