[ad_1]
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)
}
[ad_2]