Open buguibu opened 5 years ago
As the netowrking code is pretty simple and no fancy feature or customization is done, and as it works perfectly on Wifi and over the rest of mobile internet providers i have to abandon the app code issue and explore server side problems.
As logs above says, there is a random issues that bugs the SSL certificate and makes the client to invalidate the request.
Bt why it only happens on cellular and only on a specific career?
Try to use another network like 3G or 2G doen't work.
Working scenario
A pretty straightforward iOS 11 app that request contents to HTTPS servers using Alamofire 4.8.1 without NSAllowsArbitraryLoads enabled for security.
The app runs perfectly on Wifi and on Android works perfectly under any internet connection.
Failing scenario
The iOS app when used over mobile network of a specific IPS some request to a couple of servers fails, other doesn't.
Calling the server directly form Safari or an Postman like app fail.
The list of errors i'm getting:
What i have tried
let configuration: URLSessionConfiguration = URLSessionConfiguration.default configuration.allowsCellularAccess = true configuration.waitsForConnectivity = true configuration.timeoutIntervalForRequest = 120
Links i followed