I try to make calls in the background, such as POST, GET, to be more precise in the didReceiveRemoteNotification method, because they start working as a push notification. My problem is that all Alamofire.request never rings in the background until I open the application. I'm by now
Im trying to open a session, but it will not make the request work.
This is what I want to run in the background (cell phone in the background)
Alamofire.Manager(configuration: configuration).request(.GET, url, parameters: nil) .responseJSON { (_, _, JSON, _) in
But this will not work, even if I add the code below this request, it works, but the request is returned or even the request is not executed.
swift uiapplicationdelegate alamofire
Daniel Romero
source share