V
V
Vadym Piatkovskyi2019-01-08 12:28:04
Objective-C
Vadym Piatkovskyi, 2019-01-08 12:28:04

How to solve the limit with scheduled alerts?

Hello. I ran into a problem of this kind:
I get specific dates from api for the whole year and, depending on the response, I form the content of the alert.
There can be about 200 dates per year (respectively, there should be 200 notifications), but as we know, we have a limit of 64 notifications. In principle, I can squeeze out a maximum (64) of the nearest alerts, but what about the rest? If even half of them have already been fired and the cells for new notifications have been freed - how can I rewrite the list of notifications if the user does not enter the program, but uses the day as a reminder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2019-01-08
@Zinapp

And who is stopping you from setting a task in the background and requesting dates every day at 00:00, say, and adding an alert? Or let's say request new dates with a longer period. No one is forcing you to set 200 alerts in one day. Get new dates and set them as needed. You don't need to log into the app for this.
The second option is to use EventKit(Calendar, Reminders). There are no limits at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question