Interested in how to implement local notifications when an application is in the background, that is, each notification has such a method (first there is a connection to the API , which changes once a minute and then filling):
let content = UNMutableNotificationContent() content.title = name let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 60, repeats:true) UIApplication.shared.applicationIconBadgeNumber = 0 let reguest = UNNotificationRequest(identifier: "identifier", content: content, trigger: trigger) UNUserNotificationCenter.current().add(reguest) { (error) in} which works once a minute when the application is on the screen, but as soon as it collapses, that's all. How to create a method in the background at intervals, say, once a minute?