backgroundtaskidentifier

Background request not execute Alamofire Swift

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 09:23:52
I'm trying to make calls in background like POST,GET to be more precise in the didReceiveRemoteNotification method, because they start to work as a push notification arrive. My problem is that all the Alamofire.request are never call in Background mode until I open the app. I have by now Im was trying to open a session but it won't make the request work. These is what i want to execute in background (cellphone in background) Alamofire.Manager(configuration: configuration).request(.GET, url, parameters: nil) .responseJSON { (_, _, JSON, _) in //println(JSON) println(JSON) REST OF THE CODE But

Background request not execute Alamofire Swift

血红的双手。 提交于 2019-11-27 02:52:54
问题 I'm trying to make calls in background like POST,GET to be more precise in the didReceiveRemoteNotification method, because they start to work as a push notification arrive. My problem is that all the Alamofire.request are never call in Background mode until I open the app. I have by now Im was trying to open a session but it won't make the request work. These is what i want to execute in background (cellphone in background) Alamofire.Manager(configuration: configuration).request(.GET, url,