简体   繁体   English

如何在某些日子发送本地重复通知?

[英]How to send a local repeating notification in certain days?

I have a reminders app, I made a UI that looks like this where the user can pick multiple days and the hour that he wants to be reminded on.我有一个提醒应用程序,我制作了一个看起来像这样的用户界面,用户可以在其中选择他想要提醒的多天和小时。 For example, I can select Monday and Tuesday at 15:00 and I should be reminded those days at that given hour.例如,我可以在周一和周二的 15:00 select 并且应该在给定时间提醒我那些日子。 But I can´t figure out how to make this work (mainly, the mutiple days thing).但我无法弄清楚如何使这项工作(主要是多天的事情)。 Any ideas?有任何想法吗?

You can send a local repeating notification with the help of AlarmManager .您可以在AlarmManager的帮助下发送本地重复通知。 setRepeating() function can be used to schedule notifications. setRepeating() function 可用于安排通知。

similar question , Check this link for better understanding.类似的问题,检查此链接以获得更好的理解。

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

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