I want to setup a time period for my Notifications. I created a UNTimeIntervalNotificationTrigger, that the App sends everyday 3 Notifications. But I also want to do that the 3 Notifications will send between 10:00am and 11:00am or whatever.
So anyone knows how to code a time period for Notifications, that the App sends in that period a few Notifications?
Thank you!
Instead of UNTimeIntervalNotificationTrigger, you should use UNCalendarNotificationTrigger
But for 3 notifications between 10AM and 11AM, you need to create 3 notifications.
More Info :-
To better understand the scope of UNCalendarNotificationTrigger , I am adding some more options. Note, for your requirement you shouldn't add the below 2 lines, it will give you unexpected results.
If you want this to repeat only any particular day in the week, add :-
If you want this to repeat only any particular day in a month, add :-