I am uploading a video using NSURLSession, right now my video is successfully uploaded. but once wifi connection OFF, the below delegate method is executed right away.
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error{
}
How I can resume upload when WIFI connection is back?