I am performing some NSURLSessionTask. It takes nearly 10-15 seconds to complete the task.Everything goes well when iPhone is in active state.
The problem here is while performing the task, if iPhones goes to sleep mode then task will stop with an error saying "Network connection lost".
Is there any solution to continue/pause the task even in sleep mode. I tried many solutions which I found in stackoverflow, but that didnt help me.
Please help me out.