Questions tagged [background-service]
A background service is a computer service that runs "behind the scenes" (i.e. in the background) and without user intervention.
915
questions
-1
votes
0
answers
20
views
How instagram allow auto launch permission without ask in android
Actually i'm trying to turn On Auto Launch permission in my device programmatically (OnePlues 7) and also other devices who have API level > 30
But i wanna know how instagram turn on "Auto ...
0
votes
0
answers
49
views
C#.NET Background Service [closed]
In C#.NET I registered a background service:
services.AddHostedService<FCTBackgroundService>();
The background service interacts with FCTService and runs the service in the background.
using ...
0
votes
0
answers
27
views
Flutter background service for both android and iOS
I have to try to send data from my database to endpoint every 30 minutes. I have created method for it. App will not be online all the time. How to achieve this? I stumbled across background_fetch ...
2
votes
1
answer
38
views
How to add data seed method with IHostedService
This is my Program.cs
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
builder.Services.AddTransient<DatabaseSeeder>();
builder.Services.AddScoped<...
-2
votes
1
answer
61
views
'BackgroundService' is a namespace but is used like a type
I'm creating a background service in .NET 8, but I get the below error
Error CS0118 'BackgroundService' is a namespace but is used like a type
This was working in .NET 6 version.
I have uninstalled ...
0
votes
0
answers
18
views
How to solve FlutterJNI.loadLibrary called more than once?
when I run the project, I am facing the error:
W/FlutterJNI( 8009): FlutterJNI.loadLibrary called more than once
I/ResourceExtractor( 8009): Found extracted resources res_timestamp-1-1700998719201
W/...
0
votes
0
answers
31
views
How to move my premise windows services into Azure?
I am moving an existing application into Azure and striving for no code changes. I've moved my websites, and they now run as an app service.
We have several background workers, currently running as ...
1
vote
1
answer
66
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 ...
1
vote
0
answers
17
views
Flutter background service not running my phone
the problem I am experiencing is as follows. When I work through the emulator, the background service coding of my application works properly. However, when I install and run the application on my ...
0
votes
0
answers
27
views
How to run background service running even if application process stopped in Android 10?
I need to run a service that will be alive after I close application. The service will be started from launcher activity. How can I disable this service from the launcher activity?
This is my Service ...
-1
votes
0
answers
47
views
in Flutter use sound recorder/player in background
I want use player/recorder as stream in background_service in foreground mode. but when open player/recorder get exception that is MissingPluginException(No implementation found for method resetPlugin ...
2
votes
1
answer
71
views
How to make ExecuteAsync run async [duplicate]
I have asp.net app with worker service initialized like this.
builder.Services.AddHostedService<XXX>();
And then service worker itself.
public class XXX : BackgroundService
{
readonly ...
1
vote
0
answers
23
views
Listen to changes from a function in workmanager flutter
I am performing a background task of uploading videos in my flutter app. I want to display the progress of completion on my ui.
I was using a valuenotifier before implementing workmanager, and it was ...
0
votes
1
answer
86
views
Azure WebJobs vs Quartz.NET
If I have a WebJob project in my application and set the CRON expression in Azure Cloud like in the photo below then why would I need the package Quartz.NET?
The WebJob project has a class inheriting ...
0
votes
0
answers
26
views
'flutter_background_service' android-34 crash
I'm using the flutter_background_service package to write a service to run in the background in flutter, and I get an error when I get the hour build.
Execution failed for task ':...
1
vote
0
answers
65
views
What is the most popular way to define a background service in ASP.NET Core? [closed]
I want to define a background service to update the status of database records daily. I've searched online and found multiple ways to do so like IHostedService, BackgroundService, Hangfire and Quartz.
...
0
votes
0
answers
32
views
Why does background service not work from Android 8
I'm trying to run a background but it's not working as expected ,when I run setAsForeground everything works fine but when I run setAsBackground and I close the app the service will also stop.
(...
0
votes
0
answers
28
views
Background Service is getting killed after 10 minutes or so
I have created a service which is responsible for sending current location on server every 60 seconds.
I am using this as a foreground service, creating a foreground notification.
But its been noted ...
1
vote
0
answers
233
views
flutter_background_service_android Plugin Throws Exception in Android Devices
I am currently working on a Flutter application that utilizes the flutter_background_service package for running background services. To implement the background service, I have integrated the ...
0
votes
0
answers
30
views
can't get clipboard data in foeground
I am trying to monitor the clipboard in the foeground by running a check on it every 500 milliseconds but for some reason it's not working...
Timer.periodic(Duration(milliseconds: 500), (timer) async {...
0
votes
0
answers
55
views
How to send a WhatsApp message in a BroadcastReceiver when a call ends, even when the app is in a killed state?
I'm working on an Android application where I need to send a WhatsApp message automatically when a phone call ends. I have a BroadcastReceiver set up to detect the end of a call, and it works ...
0
votes
0
answers
14
views
Using ASP.NET Core background service without overlapping execution
I have a controller I built that basically pulls in shopify orders and checks to see if they are in another sites woocommerce database and if not it adds the order. There are about 200 orders coming ...
1
vote
1
answer
130
views
How to open Auto start permission settings in Realme devices
what is the Intent ComponentName to ask Auto start permission in Realme devices.I'm not able to open auto start permission via intent in Realme devices.
OS version:- ColorOS version V12, Android 12 , ...
0
votes
1
answer
17
views
Run .Net 6 Windows Forms app as a windows service
I have a windows forms application that does some timely call to webservices. I did it as a windows forms because it was simpler to track comunications and tests.
But now i need it to run as a windows ...
1
vote
1
answer
44
views
Not able to get geolocation when app is minimized or closed
I am working on a project in which i have to use geolocation of the staff. i am able to get the notification with "@react-native-community/geolocation" as soon as i minimize the app or close ...
0
votes
1
answer
126
views
How to run background service at eveytime i click the Controller (GetAllUsers)
Actually iam trying to run my controller and backgroundService at the same time. But my controller want to execute the background service at each time when iam getting the GetAllUsers. My Controller ...
0
votes
0
answers
24
views
Is it possible to inject a background service to an apk?
Is it possible to inject a background service into an already made APK without the source code?
0
votes
1
answer
216
views
How to use background services in .NET MAUI?
I'm trying to implement background services for an application built in in .NET MAUI but it fails if use the below service technique. Is there any other implementation for this ?
https://github.com/...
0
votes
1
answer
83
views
Flutter, background services and tasks are not working on iOS
I run a background service in Flutter and make this service listen to the Connection state with the help of Connectivity and if there is a connection, I send data to the server. It works properly even ...
0
votes
0
answers
29
views
How to perform multipe task under single android background service?
So what my app is doing compressing videos and reducing its size.
For this, I am using an Android background service and it's currently working fine.
Also looks good for one selected video, now what ...
0
votes
1
answer
83
views
Background service in multiple pods in kubernetes
I have a Background service microservice in dot net and I am deploying it to Kubernetes as a container. If I have two pods then each pod will perform the same database operation at the same time, how ...
1
vote
1
answer
48
views
Service in the foreground not allowed to start background in service in another app on Android 12
I have started a service and elevated it to foreground status, which seems to work.
However now I want that service to start another service running in the background of another (unstarted) app, but ...
0
votes
0
answers
31
views
Best Practices for Handling Background Services and Battery Optimization in Android
I'm developing an Android app with background services for tasks like location tracking and data syncing. My main concern is optimizing battery usage while ensuring smooth performance across different ...
1
vote
1
answer
185
views
BackgroundService blocks application start until the job done
I have two background services, one to write data to a channel, and one to read data from that channel.
For demo purposes, I created the channel and background services like this:
public class ...
1
vote
1
answer
77
views
How do I add signalR to a background service in different project?
I have a working signal R in my MVC .net core 6.
I have a background service in my MVC project which calls my signalR hub and updates all my pages. I have moved this background service to its own ...
1
vote
0
answers
60
views
SMS_RECEIVED Broadcast receiver stops working after some time
I'm working on a utility application in which when an SMS is received with a specific message I need to send a reply message. To know the sms_received event i used a broadcast receiver. Below it the ...
0
votes
0
answers
181
views
Flutter Background Locator 2: How to Start Location Service in the Background in android 13 In release mode?
I'm using the Flutter Background Locator 2 package in my Flutter app to track the user's location in the background. However, I'm facing an Missing type parameter issue when trying to start the ...
0
votes
2
answers
478
views
How To Work In The Background On Android 13?
I built app that do polling to the server via HTTP requests every 2 seconds,
and now I want to make it work even in the background when the screen is black (user press on lock screen button) because ...
0
votes
1
answer
73
views
Do background threads run slower than other threads?
I have a C# console application running as a Windows Service. It implements BackgroundService, which is the recommended way to implement Windows services.
In addition, I'm using Hangfire to initiate ...
0
votes
0
answers
59
views
Flutter IOS - fetching API in background when app is closed
Is there a good way to run code in the background (fetching api and calculating something) on IOS? I can't find a solution that works reliably.
I already used flutter_background_service but after some ...
0
votes
0
answers
150
views
ASP.NET Core Web API is not working on IIS after publishing,But Working on my machine,
public class NotificationJob : IHostedService
{
readonly ILogger<NotificationJob> _logger;
public NotificationJob(ILogger<NotificationJob> logger)
{
_logger = logger;
...
2
votes
0
answers
437
views
Flutter background service get user location failed
My Flutter app requires fetching the user's current location after a periodic time even app is in the background or clear from recent. To run app in background mode I am using ...
1
vote
0
answers
17
views
Trouble with Running a Continuous Task in the Background
I want to add notifications at certain intervals using BackgroundService, but the waiting interval I set is 10 seconds in this example, the program running ends when it is finished.
Service like this:
...
0
votes
0
answers
54
views
how to register background task for IOS? I need to get current geolocation and send it. In flutter
here is my code for background task:
const String notificationChannelId = "foreground_service";
const int foregroundServiceNotificationId = 888;
const String initialNotificationTitle = "...
0
votes
1
answer
33
views
Android Alarm Manager is not able to execute a periodic function
I am using Android Alarm Manager to execute some background code in flutter. The code runs perfectly when it is scheduled in main.dart file. However, when i do the same in another file, it does not ...
0
votes
0
answers
224
views
Icon with Fluutter Background Service is Different
I'm using 'flutter_background_service' package with Flutter to run a service in the background, when setting up the I need to configure the Notification Channel.
The notification is now being shown ...
0
votes
0
answers
23
views
Bluetooth scan is not working in foreground service JAVA for android
I want to scan Bluetooth device on foreground. I created foreground service and added bluetooth scan code to foreground service. This service and bluetooth scan are working when phone screen is on ...
0
votes
0
answers
127
views
What is the difference between deploying a Console project as a Task on Windows' Task Scheduler and a Worker Service project as a Windows Service?
I've watched this tutorial where it explains how a console project can be deployed as a Windows Task.
My question is if I create console project with a IHost and a couple of hosted services running ...
2
votes
1
answer
566
views
How to implement geofencing in Flutter
I'm working on a Flutter application and I'm trying to implement geofencing functionality. I want to be able to track when a user enters or exits predefined geographic regions and perform certain ...
0
votes
1
answer
416
views
Understanding BackgroundService and CancellationToken
I'm quite new to this. There is a lot of information around, and I'm a bit confused. I would like to verify that I understood correctly and appreciate any help. I will number each of my questions in (...