Is there any way can do reconnection after a connection has failed with AFNetworking?
If there is, can I control reconnection timeout and reconnection times?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While, that’s not a current feature of AFNetworking, the Foundation URL loading system that AFNetworking uses is quite robust, and will automatically do it’s best to make requests work.
The best thing for you to do would be to re-request and do any messaging to the user in the failure block of your request operation.