local notification at different times everyday

206 views Asked by At

I would like to know what is the best approach to do if I want to fire notifications for more than one time each day everyday.

I did some research and read that notifications for the next day cannot be fired unless the user opens the app the next day and updated the notification. Is that true? is there anyway I can do it without the need of the user opening the app everyday?

Thank you

1

There are 1 answers

0
Glorfindel On

You can schedule up to 64 local notifications. There is no limit on the time period; you can schedule them years in advance if you like.

That said, if you need some mechanism to schedule new notifications, even if the app is not running at all (e.g. because the user terminated it), you need a background mode for that. Fetch is probably the way to go here, as it doesn't need a special trigger. You could also send silent push notifications in order to wake the app, make the calculations and schedule the new notifications.