I need to make a request with Alamofire and if it fails because of no internet connection, I must switch the app to background mode and keep trying to make the request in background. When the request is successfully completed, I show a local notification. I've already searched about background mode, but I didn't figure it out how to do that. Any ideas?
Asked
Active
Viewed 760 times
1
-
you could chechk this solution https://stackoverflow.com/questions/11864553/ios-http-request-while-in-background – Phd. Burak Öztürk Jun 14 '17 at 00:40
-
Thank you @BurakÖztürk, I didn't get it yet, but I'll let you know when I find a solution – Felippe Bertges Jun 17 '17 at 15:24