background-process

Running background services in iOS

ぃ、小莉子 提交于 2019-11-27 19:30:04
I need to code an iOS app that sends data to server every 30 minutes. Can this work when the app is in the background? How reliable it can be? Im_Lp There is no way to perform tasks in the background permanently at the interval of time you are requesting. You may request specific permission via the developer connection but I must warn you that you will need a very compelling argument. I included the documentation below, maybe your request falls within one of the groupings that could run permanently. Or maybe you could use one of the long running background threads and adapt it in such a way

On Android, what's the difference between running processes and cached background processes?

让人想犯罪 __ 提交于 2019-11-27 19:21:30
On Android, when I look into "Setting" -> "App", under the tab "running", I can see the memory is cut into to parts: "used memory" and "memory free", also the applications are either put into "used memory", or "memory free". The applications in "memory free" part are noted as "cached background process". So, what are "cached background processes"? They are still in memory, rather than switched to "disk" (as desktops/laptops do), right? When the user tab one of these "cached background processes", it would be displayed immediately as it is still in memory, just like a running process, right?

iOS Background Fetch Not Working Even Though Correct Background Mode Configured

半城伤御伤魂 提交于 2019-11-27 17:08:14
问题 My app has background modes enabled with Background Fetch checked and I validated the plist includes the appropriate fetch mode. I have also configured the interval as follows: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { application.setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum); return true; } And I have added the handler as follows: func application(application: UIApplication,

How can I start a process in the background?

喜夏-厌秋 提交于 2019-11-27 16:26:07
问题 I can't seem to find an answer on Google or here on StackOverflow. How can I start a process in background (behind the active window)? Like, when the process starts, it will not interrupt the current application the user is using. The process won't pop out in front of the current application, it will just start. This is what I'm using: Process.Start(Chrome.exe); Chrome pops up in front of my application when it's started. How can I make it start in background? I've also tried: psi = new

Continue operation when app did enter background on iOS

我是研究僧i 提交于 2019-11-27 15:10:17
问题 in my app i have some NSOperation that update some core data element from a online database, sometime the update require some minute, and when the screen of iPhone lock, the app enter in the background mode, and this update is stopped, so i have to reopen the app to continue the update, so i have search a lot on stack overflow and i have find some information about: beginBackgroundTaskWithExpirationHandler that is a method from apple that let continue some task also when the app is in the

Long running background PHP script blocks other PHP pages until it is finished

徘徊边缘 提交于 2019-11-27 14:48:16
I made a long script in PHP as such: ignore_user_abort(true); set_time_limit(0); It runs perfectly in the background even if I close the page. My problem is that I can't open other PHP files until this script finishes running in the background. How can I solve this problem? When a PHP script uses sessions, PHP locks the session file until the script completes. A page request that tries to use a locked session is blocked until the session file is released. PHP does this so that sessions remains in a consistent state. Quote from PHP bug #31464 : [2005-01-10 08:13 UTC] derick at php dot net This

how to run my application in background in iphone?

一个人想着一个人 提交于 2019-11-27 14:26:40
I want to run my timer in background even when app is not running. Because I want to get gps cordinate of the user after some time interval. What is the method to do this? I don't think this is allowed in the iPhone programming paradigm. The operating system is capable of running background tasks but ordinary iPhone apps are not permitted to launch anything like this. The Apple Push Notification service is not, in fact, only available to a few developers. It is currently in wide-spread use. Take a look at this: http://developer.apple.com/IPhone/library/documentation/UIKit/Reference

Job Scheduler vs Background Service

心已入冬 提交于 2019-11-27 11:07:55
问题 I have an app which has a feature A which should run in background every minute. Feature A is that the app should connect to a database, read some data then get the current location of the device and based on them check a condition, if the condition is true it should send a statusbar notification to the user so that when the user clicks on the notification the UI of the app will be displayed and something happens. This background task should run permanently every minute, regardless the app is

How does the web version of Whatsapp work on iOS devices considering the OS shuts apps in 30 seconds?

拜拜、爱过 提交于 2019-11-27 10:15:37
问题 Now for those who don't know, can go to https://web.whatsapp.com/ and sync your Whatsapp chats by exchanging a QR code and chat via the web extension of the app. I am not interested in how they have an initial handshake( might be communicating with whatsapp servers) nor how they sync data so fast for chatting (might be using Open sockets directly from device to client). I am curious as to how the app works in Background on iOS . AFAIK running a background Intent Service is pretty simple. But

Executing a function in the background while using limited number of cores/threads and queue the extra executions?

做~自己de王妃 提交于 2019-11-27 09:54:23
I want to use a limited number of threads (at most 2 ) to run a function in a class for removing some files on disk in the background. The rest of my code within the same class is independent of this background function and might get executed tens of times more than the background function. However, I still need to enforce the core/thread limit. So it is possible that the background jobs might exceed 2 and I need to queue them. Note that my background function does not take any arguments. I am pretty new to multi-threading and multi-processing but I think I have done my homework and looked at