I am trying to send a URL request to the server by using URLSession.shared.dataTask.
When the network is unreachable, the log will show "The resource could not be loaded because the App Transport Security policy requires the use of a secure connection." and nothing will be sent without retry.
Is there any method I can use to re-send a URL request until the network is reachable?