swift/ios refreshing app data when in background
问题 I'm writing a iOS/Swift application which reads data from a REST service each X minutes and updates the UI accordingly. Now I would like that when the app is put in the background, a task keeps being invoked at X minutes intervals reading from the REST service and, in case the data just read satisfies a given condition, show a notification prompting the user to bring the app back to the foreground. In my searches I've read that during applicationDidEnterBackground event, I should start a task