background-task

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

Adding UWP Background task causes AppManifest errors

我的未来我决定 提交于 2019-11-27 06:18:06
问题 I've been trying to add an out of process background task to my project to update my App's live tile. The task needs to make a database call to get some data, then process that data to send out a few tile notifications. I've managed to get it to work in one project that I created specifically for prototyping the background task functionality. However, when I tried to add a background task to my main project it gives me the following error: Validation error. error 80080204: App manifest

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,

Watchkit , openParentApplication with WatchKit Extension

风格不统一 提交于 2019-11-27 02:18:55
First times doesn't work "Null" ( before open App in iPhone ) and some times doesn't work but i want one loop or timer for repeat this request for get result : here is my code - (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *))reply { // Temporary fix, I hope. // -------------------- __block UIBackgroundTaskIdentifier bogusWorkaroundTask; bogusWorkaroundTask = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{ [[UIApplication sharedApplication] endBackgroundTask:bogusWorkaroundTask

Periodic iOS background location updates

爷,独闯天下 提交于 2019-11-25 23:38:58
问题 I\'m writing an application that requires background location updates with high accuracy and low frequency . The solution seems to be a background NSTimer task that starts the location manager\'s updates, which then immediately shuts down. This question has been asked before: How do I get a background location update every n minutes in my iOS application? Getting user location every n minutes after app goes to background iOS Not the typical background location tracking timer issue iOS long