每天在特定时间检查数据库并发送通知
对于以下问题,我找不到正确的解决方案。有一个数据库SQLITE,其中包含员工名称和出生日期的列表。每天都有必要在特定时间(例如,8:00)在后台检查数据库,如果员工有生日,请发送带有其名称的通知。我会感谢任何建议。
// Checking the database before triggering a notification
func checkDataBase() -> (Bool, String) {
var showNotification: Bool = false
var employeeName: String = ""
// Database checking
return (showNotification, employeeName)
}
I can't find the right solution for the following problem. There is a database SQLite with a list of names of employees and dates of birth. It is necessary every day at a certain time (for example, at 8:00) to check the database in the background and, if the employee has a birthday, send a notification with his name. I would be grateful for any advice.
// Checking the database before triggering a notification
func checkDataBase() -> (Bool, String) {
var showNotification: Bool = false
var employeeName: String = ""
// Database checking
return (showNotification, employeeName)
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论