I have a function which is sending an HTTP request once in 60 sec, but when I lock phone it stops. So, is there a way to send HTTP requests when a phone is locked? I've tried to do it in
func application(application: UIApplication, performFetchWithCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void)
but it's not worked.