Thanks, this is helpful. And yeah, I understand that the task isn't scheduled to complete at a certain time, but rather the OS determines the appropriate time to execute the task after the specified period of time. I've included a timestamp to capture when the task last ran, so if the app opens and the background task did not execute as desired, the app launch will trigger it. I'll be sure to include logic to cancel and reschedule pending tasks as well, if the task runs on app launch.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: