727 questions
0
votes
0
answers
62
views
How to debug Microsoft-Windows-BrokerInfrastructure service
I attempted to declare a print background task (PrintSupportExtensionBackGroundTask) in the appx manifest and register it with the system. However, when the foreground application (i.e., the main ...
0
votes
1
answer
112
views
How to register for the PSA printing background task
I'm working on PSA (Print Support App) development with the following environment: Windows 10 22H2 and Windows 11 SDK 10.0.26100.0.
In the appx manifest, I attempted to register a background task ...
0
votes
0
answers
245
views
Background tasks with react-native-background-fetch not working on iOS
I'm currently working on a project where we need to run background tasks, specifically, making periodic API calls.
After some research, I came across the react-native-background-fetch library. It ...
0
votes
1
answer
49
views
How to stop Expo Push Notification sound?
I am using Expo Push Notifications in my app to implement a WhatsApp-like calling functionality. I've used a custom sound, and it plays perfectly.
But the problem is when I wanna stop it from the JS ...
0
votes
0
answers
100
views
How to force Background Uploads with Firebase Storage using Swift?
I am uploading small files to Firebase Storage, approximately 276KB a piece. The app can choose to do a small handful of these uploads per day from the background. The desired behavior is that ...
0
votes
0
answers
31
views
BGTaskSchedulerErrorCodeUnavailable error not thrown when background app refresh is off
We have implemented BGAppRefreshTask in our iOS Swift project. If the device's background app refresh is off, then below line of code is not throwing any error. Ideally it should throw ...
0
votes
1
answer
105
views
Django background task not runnng
I am trying to send an email with a Django background task. But the problem is that when I run python manage.py process_tasks nothing happens. I am just stuck in part where it looks like it is running ...
1
vote
2
answers
1k
views
How to create a background task with headless js in react native
When following the documentation here https://reactnative.dev/docs/headless-js-android and trying to create a simple background task, everything seems to work properly ( compilation and building is ...
0
votes
2
answers
328
views
Automatically starting task queue for django-background-tasks
I'm building an application which involves a task queue from django-background-tasks. The issue that I'm facing is that I can't seem to start the queue automatically and have to manually run ...
1
vote
1
answer
63
views
Android studio creates 1000+ tasks in background after being closed
I've installed my AS on external SSD (where programs are didn't matter before but maybe it's crucial now). I'm a student so all I make is simple, not too demanding (and outright primitive), so 2374 ...
0
votes
0
answers
241
views
My BackgroundTasks code is not working in background, but works on debug
I am trying to upload a file to S3, authenticated by AWS Cognito, automatically from the background even when the app is closed.
So this is my AppDelegate Code:
import BackgroundTasks
class ...
0
votes
0
answers
102
views
How to keep alive web socket connection in background app?
How do I keep the web socket connection active even though it is in the background of the application?
Even though I am outside the application, I still want to receive messages sent by the web socket ...
1
vote
0
answers
588
views
`BGAppRefreshTask` Handler Not Being Called Despite Proper Setup in iOS App
I’m working on implementing a background task in my iOS app using BGAppRefreshTask. I’ve followed all the steps to set it up, but the background task did not work for the background and terminated ...
0
votes
1
answer
120
views
MissingPluginException(No implementation found for method createNewNotification on channel awesome_notifications)
I am trying to send a notification using Awesome notification plug in whenever a background task is successfully completed using Workmanager plug-in. Having the Workmanager work on iOS is a pain, but ...
0
votes
0
answers
64
views
Out-of-process background task & NamedPipeServer in UWP
I created a out-of-process background task in which I download a HLS stream(m3u/m3u8) by using a LibVLCSharp library.
Platform is UWP
I have two different processes app and background task. App is ...
1
vote
1
answer
436
views
Updating FCM token in background
I've been struggling with issues related to FCM tokens for a while, and I would really appreciate it if someone could explain how it works.
The Firebase token tells the notification server which ...
1
vote
0
answers
41
views
How can I read the response body in a FastAPI middleware without making my endpoint wait for its background tasks to finish? [duplicate]
Sure, here is a clearer version of the text in English:
The provided code shows a FastAPI middleware implementation, which performs an operation with the HTTP response details before returning the ...
1
vote
0
answers
110
views
FlutterBackgroundTask - Issue in android 14 (API 34) (flutter_background_task)
We were trying to enable screen share feature in a video conference. It need to run a service in the background. So using this package enabled the feature, but when changed the 'targetSdkVersion' ...
1
vote
0
answers
36
views
How to launch app when app is terminated an phone idle?
I need to make an app that shows phone features on its own in a showroom. App will demonstrate about phone and phone will be usable with other apps installed. Whenever User quits the app and finished ...
1
vote
2
answers
76
views
UWP background tasks: Does it run indefinitely? How to check if it is already running?
From a UWP app I start the following UWP background task using BackgroundTaskBuilder:
namespace Background.UWP
{
public sealed class BackgroundTask : IBackgroundTask
{
private ...
0
votes
1
answer
94
views
Set an event on ToastButton from background task
From a UWP application I start this background task:
namespace Background.UWP
{
public sealed class BackgroundTask : IBackgroundTask
{
private WatchLoop _watchLoop;
public ...
1
vote
0
answers
1k
views
expo-task-manager background task doesn't run in the background on iOS
This is one of my first posts ever. When I'm stuck I usually just hit my head against a wall, but today I'm asking for help. I've got a ReactNative app built using Expo which does some realtime ...
0
votes
0
answers
24
views
How to run multiprocessing inside a backgroundTask in FastAPI? [duplicate]
I have an API, which will call 10 functions inside it. Now these 10 functions can take up more than 5-10 min and these functions need to run one be one.
To achieve this, I am using backgroundTask ...
1
vote
0
answers
458
views
Streamlit + FastAPI : how to dealing with long running process (10min)?
I need to deal with the current issue :
in my frontend (streamlit), I'd like to get a file (such as excel), send it to my backend (with FastAPI). The backend will work with a BackgroundTasks during ...
1
vote
0
answers
500
views
Can I handle a BGProcessingTask with SwiftUI's backgroundTask(_:) scene modifier?
I'm working on an app that needs to process cached location data in the background periodically. While the task usually completes in less than 30 seconds, it could potentially be battery- and network-...
4
votes
1
answer
3k
views
Periodic Background Tasks in Flutter IOS
I want to execute some background task in Flutter when the app is not in opened state. It is either in background or in terminated state. The requirement is that i want to fetch the device location ...
2
votes
1
answer
1k
views
How to run a Background Task when using websockets in FastAPI/Starlette?
My ultimate goal is to write code that only triggers other servers when calling an endpoint and waits for data from a specific channel in Redis to come in. I don't want to know external server's ...
2
votes
0
answers
48
views
Persistent Background Task in iOS 2024 [duplicate]
I need to run a persistent background task, which speaks if a new message comes in to inform the user. Till now i couldn't find any "legal" way to make that happen. Apple has pretty strict ...
1
vote
1
answer
153
views
FastAPI ignores BackgroundTask in custom APIRoute class
I have a function that I wish to run as background task and that I add on the endpoint shown below. Using the return value I poll on a second endpoint for the status which gets updated in the function ...
0
votes
1
answer
249
views
.NET Core - Background Worker class, with a new container scope, gets a "context-disposed" error for a DI injected database-context
I’ve spent a significant number of hours trying to figure this out and I think I am missing something. This is regarding .NET Core 6/8 and an ASP.Net pipeline; the glitch is with the DI’s scopes and ...
1
vote
0
answers
927
views
Background Task in ios is not executed and can not be debugged in physical device
I have a flutter project that contains some native code, in this case I have a background task using BGTaskScheduler (using native swift), ok now the problem is that the task is never executed and ...
1
vote
0
answers
381
views
react-native-background-fetch never execute the callback function
For android
I created startStask function to start my background task with BackgroundFetch from 'react-native-background-fetch' like this :
const startStask = async () => {
try {
console.log('...
2
votes
1
answer
966
views
How to run code in the background on iOS? Not sure which methodology makes sense [closed]
I'm trying to set up background HTTP upload requests (syncing files from the user's phone to a server) that trigger periodically in my Swift app. I don't have strict requirements on when this runs (it ...
2
votes
0
answers
491
views
The background task in my SwiftUI app doesn't fire on physical device
folks.
In my ios app with SwiftUI, I ma trying to implement fetch data in background in order to update my app with fresh data from the Back End. In order to do it, I am trying to implement it in the ...
1
vote
1
answer
896
views
How to run multiple background tasks at a specific time interval?
I'm developing an application in C# MVC and I want to execute multiple background tasks each at different time intervals. I already have a service that inherits the class BackgroundService.
I already ...
0
votes
0
answers
747
views
Simulate Background Task' Not Printing to Console in Simulator using SwiftUi
Based on documentation from here Using background tasks to update your app
I've implemented a background task in my AppDelegate to print "Hello World - Performing background task" when app ...
2
votes
1
answer
102
views
JavaFX avoiding locking UI during long running operations with mixed UI and not UI elements
In JavaFX in my controller after clicking on Play button starting method 'createTTV()' creating nested TreeTableView(This treetableview will be even larger, but I don't want to paste too much ...
4
votes
1
answer
2k
views
background task (.backgroundTask) doesn't work in SwiftUI
I've configured background task in plist.info with an identifier updateCountry and Background Modes fetch and processing as capability.
I have locationManager with these functions:
func ...
0
votes
2
answers
242
views
Background Bluetooth Device Discovery Error with flutter_bluetooth_serial and flutter_blue
I am currently working on a Flutter application that involves Bluetooth device discovery in the background. To achieve this, I have tried using the flutter_bluetooth_serial package in combination with ...
0
votes
1
answer
113
views
Keep upload file as json in database
I upload a text file into my system. It consists of the file content as byte array. Then this content is parsed and converted in a C# class object with many relations.
I need to move this upload ...
0
votes
0
answers
335
views
Error registering a task for sensor tracking with expo-background-fetch and expo-task-manager in React Native
I am working on a sensor tracking feature in a React Native application. At first I was running it in foreground and that is working perfectly but I want to track also during screen lock, Hence, I am ...
-1
votes
1
answer
340
views
BGProcessingTask expirationHandler - Do i MUST finish background work? or can it be resumed later?
I'm building a BGProcessingTask that may take more then 5 minutes to complete. The processing task runs on a Singleton object that can be accessed (or even started) when the app is on foreground.
When ...
2
votes
0
answers
306
views
Cannot Upload HealthKitData in the Background
I am having some trouble with uploading HealthKit data to AWS S3 in the background. As of now, when I click on the button to beginBackgroundUpdates the data is uploaded as expected. When I go off the ...
-1
votes
1
answer
3k
views
Python Fast API BackgroundTask not working [duplicate]
Do anyone had problem recently with Fast API BackgroundTask?
Name: fastapi
Version: 0.99.1
In the begin of the year I used and it was very fast to implement it. But now I tried everything and it runs ...
3
votes
1
answer
418
views
Allow user to cancel task running in BackgroundService
I created a background service to process items in a queue as demonstrated here:
Queued Background Task
Unlike the example, items are added to the queue via a Web API method that looks something like ...
3
votes
1
answer
8k
views
How to run background location task in Expo React Native?
Im trying to create a background task, mainly for android, which permit me get the current location of the user every x seconds and send it by a socket to a server socket. I read the documentation ...
2
votes
1
answer
1k
views
IOS: Background Task Only Executes Once or Twice, Not at Regular Intervals
My background task, implemented as per Apple's documentation, runs only once or twice instead of running continuously one after another. Seeking assistance to resolve this problem.
AppDelegate
import ...
-1
votes
1
answer
215
views
ThreadPool and Synchronous Execution
I have a .NET Core application that uses a ThreadPool. Each thread in the thread pool executes logic that talks to the database and makes HTTPS calls. The ThreadPool.QueueUserWorkItem(ProcessQueue); ...
1
vote
0
answers
181
views
React-native task background in android
When I working with my app with React-Native and my emulator is Android API 33 , I have a issue with a task-background. More specifically when i working with task a tracking location, I really used 2 ...
0
votes
1
answer
587
views
How to run Background task in react native using java code? (when app is killed time also)
I need scheduled track play in my react native app. If scheduled time app is kill , how to play track that time?
I tried React-native-background task and react native fetch libraries but not work ...