daltoniam / SwiftHTTP

Thin wrapper around NSURLSession in swift. Simplifies HTTP requests.
Apache License 2.0
1.88k stars 313 forks source link

HTTP.POST() not working after screen-lock (iOS 9.3.5) #287

Open JSNG94 opened 6 years ago

JSNG94 commented 6 years ago

Hello,

I called HTTP.POST() after screen-lock with iPad Mini first generation(iOS 9.3.5). HTTP.POST(GlobalDefine.remotebleEndPoint, parameters: posts, headers: CloudConnector.getHTTPRequestHeader()){ Response in // do something })

Then, I got the below response from HTTP.POST(). 2018-02-09 10 15 00 After I received this response, I checked the log of my Cloud API server. There are no any signs as the access from the app.

This issue is just happening at the first called of HTTP.POST() after screen-lock. The second called of HTTP.POST() will be fine.

Moreover, this issue seems like just happened in iOS 9 because I tested with other device(iPhone) with iOS 11.2.2. It is working well.

Hope the above information can help for your debugging.

Best Regards, Jackson