In my application I would like to schedule a task that will occur daily regardless of the app’s state – meaning that I want this task to perform even if the app is in terminated state.
I’m aware that I can send push notification at the desired time to perform the task, but I don’t want to implement the server side solution unless there’re no other options.
When looking at Background Fetch I see that the system doesn’t let me schedule the time of the task meaning it it could occur whenever the system decides it’s the best time.
When looking at Background Task I see that that the tasks will executed only when the app is still in the background and not terminated. If the app goes to the terminated state then all the tasks are stopped.
My question is – is it possible to schedule a task that will run daily and indefinitely (or as much close to it as possible) regardless the app state?




