[ad_1]
I can not discover the correct resolution for the next drawback. There’s a database SQLite with a listing of names of workers and dates of delivery. It’s needed every single day at a sure time (for instance, at 8:00) to test the database within the background and, if the worker has a birthday, ship a notification together with his identify. I might be glad about any recommendation.
// Checking the database earlier than triggering a notification
func checkDataBase() -> (Bool, String) {
var showNotification: Bool = false
var employeeName: String = ""
// Database checking
return (showNotification, employeeName)
}
[ad_2]
