We can solve this by using background task and runloop mechanism. Below piece of code can save your day for problem like run app in background continue. Initialise var UIBackgroundTaskIdentifier var bgTask:UIBackgroundTaskIdentifier! bgTask = application.beginBackgroundTaskWithName(“MyTask”, expirationHandler: {() -> Void …