Questions tagged [usernotifications]

iOS 10, macOS 10.14, Mac Catalyst 13, tvOS 10 and watchOS 3 UserNotifications framework

The UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications starting in iOS 10, macOS 10.14, Mac Catalyst 13, tvOS 10 and watchOS 3. Class names start with "UN". See https://developer.apple.com/reference/usernotifications.

182 questions
-2
votes
2 answers

How would I reset a variable every week on specific time when the App is closed?

I created a scene to present weekly goals. I count up a variable each second a user is using my App and save it to the UserDefaults. How can I reset(Set to 0) each Monday at 6PM in order to reset the 'weekly' goal automatically in the background…
-2
votes
2 answers

Repeat Local notification using UserNotifications in swift 4

I need to repeat local notification at specific time and specific days like 10:30 AM at sunday and Friday or selected week days (mon and sat). switch repeatDays { case .never: dateComponents = Calendar.current.dateComponents([.hour,…
1 2 3
12
13