Questions tagged [background-task]
677 questions
93
votes
9 answers
Periodic iOS background location updates
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…

pcoving
- 2,770
- 1
- 21
- 17
18
votes
7 answers
How to activate the process queue in "django-background-tasks"
I am new to Django and the django-background-tasks package.
I am facing an issue that I couldn't do/start background task unless I forcefully run the command process_tasks , that is python manage.py process_tasks. I want to do/start background task…
user7139313
15
votes
1 answer
Correct way to start a BackgroundService in ASP.NET Core
I have implemented a BackgroundService in an ASP.NET Core 2.1 application:
public class MyBackgroundService : BackgroundService
{
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
while (true)
{
…

Creyke
- 1,887
- 2
- 12
- 16
14
votes
5 answers
How to start background task at boot - Windows Store app
My tablet runs Windows 8.1 pro.
It has a background task which is triggered by a Time Trigger every 15'. It works, fair enough.
The problem is that I need to auto-launch my background task at every single boot (start app) of my device.
I registered…

eeadev
- 3,662
- 8
- 47
- 100
13
votes
1 answer
iOS 13 - Using BGTaskScheduler doesn't work all the time
THE PROBLEM:
I want to run a simple function, 5 seconds after app goes into background.
I had to implement BGTaskScheduler, to support iOS 13.
The old implementation for BackgroundTask works for me on older iOS versions.
I added background modes as…

Bar Malka
- 550
- 1
- 4
- 13
12
votes
3 answers
Continue download in background
I am creating an application wherein I am downloading some data from server. While going in background I want that connection should continue running so that data can be downloaded. I know there is method in appDelegate
-…

Nitish
- 13,845
- 28
- 135
- 263
11
votes
2 answers
'Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType:IHostedService
I am using .NET 5 and I want to run a background task using IHostedService classess as you can see:
public class PasargadJobs : IHostedService, IDisposable
{
private Timer _timer = null!;
readonly ITerminalService _terminalService;
…

Ehsan Akbar
- 6,977
- 19
- 96
- 180
10
votes
1 answer
What is the different between background task and background fetch correctly?
I am looking at some document on the web about background task and background fetch.
Background task is a task which performance at the background while the app still running. When the app is in the background, the task have a limited time to get…

LittleFunny
- 8,155
- 15
- 87
- 198
10
votes
1 answer
Background request not execute Alamofire Swift
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…

Daniel Romero
- 101
- 1
- 4
9
votes
2 answers
Can I keep a Watch app running in background?
I know iOS allows background tasks to run and, for example, continue to receive location updates, but is it possible to do this in a watch app?
In Xcode 9.3, I have configured my app for "background modes" and selected location, and that has…

alan.raceQs
- 411
- 4
- 11
8
votes
2 answers
How to initialize repeating tasks using Django Background Tasks?
I'm working on a django application which reads csv file from dropbox, parse data and store it in database. For this purpose I need background task which checks if the file is modified or changed(updated) and then updates database.
I've tried…

Azeem
- 292
- 2
- 13
8
votes
2 answers
can't start beginBackgroundTask swift 3
Sorry I am stuck, but I am trying to start background task (XCode8, swift 3)
Example from here:…

Alex
- 751
- 1
- 9
- 28
8
votes
3 answers
Socket Io With Android Service
Good day. I have a very specific issue considering the Socket IO library for android and it's service.
Important to mention that my device is huawei p8 lite which i am testing on.
Here it goes :
• I have a socket Io library which is being…

Volo Apps
- 235
- 1
- 3
- 12
8
votes
0 answers
Background tasks callback in WinRT (Cordova Windows plugin)
I am making plugin for Cordova and at the moment I am trying to make it support Windows platform. I have a DLL written in C# and I want to use functionalities from there in my plugin. In order to do that, I made Windows Runtime Component project…

uerceg
- 4,637
- 6
- 45
- 63
8
votes
6 answers
Windows 10 UWP - stop background task if foreground app is running
How I can prevent background task from running if there are foreground app being executed? Using Universal Windows Platform for my app.
My background task is checking for new items on some site and sends a toast when there are new things available,…

Vladislav Vorobiev
- 81
- 1
- 2