background-process

DbContext for background tasks via Dependency Injection

老子叫甜甜 提交于 2019-12-29 18:42:52
问题 I am probably not thinking in the right direction. I am fairly new to Dependency Injection and ASP.Net Core. I have a ASP.Net core website, and one of the tasks is to import data from an excel sheet to a database that a user will upload. The excel sheets can be huge and the data transformation tasks are time taking, hence I wish to perform them in the background. i.e. The user will upload the sheet, the response will be sent immediately and the background job/thread will import the data. I am

Is using Core Location for performing functionality in the background appropriate?

拈花ヽ惹草 提交于 2019-12-29 09:25:10
问题 Lately, I've notice that there are a few applications request to access the user's location for performing some functionalities in the background. For example : Application for scanning and uploading the user's photos for backup purposes, so when entering the background state, it keeps scanning and uploading. What am I asking: If there are Background Execution mechanisms for executing Background Tasks (Select Target -> Capabilities -> Background Modes), so why using the Core Location for

Can push notifications be used to run code without notifying user?

假装没事ソ 提交于 2019-12-28 23:56:30
问题 I have an app which needs to communicate with a server (to refresh it's data) once every 24 hours. This needs to happen even if the app is not open, nor in the background. Ideally what I'd like is: Every 24 hours, my server sends a push notification to iPad This wakes up the app, and runs the code necessary to refresh the data The notification is then discarded Is any of this possible? Is the app only woken up AFTER the user clicks on the notification? Or can I run some code before showing

Running Python Script as a Windows background process [duplicate]

Deadly 提交于 2019-12-28 13:22:22
问题 This question already has answers here : How to run a python script in the background? (5 answers) Closed 4 years ago . I have been trying to code a python script which reads data from a serial port. It worked well from the command line but I need it to run as a background process without any command line interface. The script has a while loop which reads the next byte of data from a serial port and simulates a key press accordingly. For the keypresses to be focused on the current window,

android design considerations: AsyncTask vs Service (IntentService?)

十年热恋 提交于 2019-12-28 01:42:26
问题 I'm designing an android app which will need to do the following steps: user pushes a button or otherwise indicates to "sync data". sync process will use REST web services to move data to and from the server. the data will be stored locally in a sqlite database. the sync process should provide status updates/messages to the UI the user should not be allowed to wander off to other parts of the application and do more work during the sync process. The first time the sync process runs, it may

How Nike+ GPS on iPhone receives accelerometer updates in the background?

懵懂的女人 提交于 2019-12-27 16:44:42
问题 The new Nike+ GPS application for iOS 5 is able to process accelerometer events in the background (thus allowing for indoor treadmill tracking). How is this possible? When I put my application in background, it ceases receiving events. I use the standard UIAccelerometer API. 回答1: For the sake of providing an answer to this question, even though it is already self answered... "If you use the newer Core Motion API, you can receive updates in the background." Here is an example: - (void

Healthkit background delivery when app is not running

雨燕双飞 提交于 2019-12-27 11:04:39
问题 Can HealthKit background delivery launch the application if is not running? Particularly in a terminated state? 回答1: After a full day of testing (iOS 9.2) I can confirm that HealthKit background delivery DOES WORK in all of the following application states: background (in background and executing code), suspended (in background but not executing code), terminated (force-killed by the user or purged by the system). Keep in mind : part 1 Some HealthKit data types have a minimum update frequency

PHP Background Processes

我是研究僧i 提交于 2019-12-27 11:01:36
问题 I'm trying to make a PHP script, I have the script finished but it takes like 10 minutes to finish the process it is designed to do. This is not a problem, however I presume I have to keep the page loaded all this time which is annoying. Can I have it so that I start the process and then come back 10mins later and just view the log file it has generated? 回答1: Well, you can use "ignore_user_abort(true)" So the script will continue to work (keep an eye on script duration, perhaps add "set_time

PHP Background Processes

夙愿已清 提交于 2019-12-27 11:01:27
问题 I'm trying to make a PHP script, I have the script finished but it takes like 10 minutes to finish the process it is designed to do. This is not a problem, however I presume I have to keep the page loaded all this time which is annoying. Can I have it so that I start the process and then come back 10mins later and just view the log file it has generated? 回答1: Well, you can use "ignore_user_abort(true)" So the script will continue to work (keep an eye on script duration, perhaps add "set_time

Run app for more than 10 minutes in background

三世轮回 提交于 2019-12-27 10:37:46
问题 I am trying to keep the iOS app in active state for more than 10 mins when it enters in background state. How can I implement this. 回答1: See "Background Execution" section of the iPhoneAppProgrammingGuide. In short, your app must be one of these types: Apps that play audible content to the user while in the background, such as a music player app Apps that keep users informed of their location at all times, such as a navigation app Apps that support Voice over Internet Protocol (VoIP)