Saturday, November 21, 2026
HomeiOS Developmentios - Checking the database each day at a particular time and...

ios – Checking the database each day at a particular time and sending a notification

[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]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments