Post

Replies

Boosts

Views

Activity

Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server."
Dear Guys,Sometimes I faced the below issues when the users launch the app from dead mode especially when open the push notification instantly and If the users wait for a ten seconds after the push notification received , the issue not appeared .Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x17445c950 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "Could not connect to the server."Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x170452780 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "The network connection was lost." UserInfo=And I tested the same scanario at different OSs and devices. Please note that the default timeout is 60 seconds and I use AFNetworking.Thank your Nada Gamal
1
0
7.5k
Jun ’17