Use beginBackgroundTaskWithExpirationHandler: API

To continue processing the tasks when the app is in the background