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.

Filter by
Sorted by
Tagged with
-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 ...
Sandeep Pareek's user avatar
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 ...
Shury's user avatar
  • 516
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 ...
strax's user avatar
  • 1
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<...
semisweetdude's user avatar
-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 ...
user avatar
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/...
ROSHO official's user avatar
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 ...
Don Chambers's user avatar
  • 3,910
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 ...
Lenny's user avatar
  • 21
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 ...
Mehmet Kurt's user avatar
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 ...
Diphenylamyn's user avatar
-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 ...
Iman Ghasemi Arani's user avatar
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 ...
JGeorgeJ's user avatar
  • 255
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 ...
Shreyansh Sharma's user avatar
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 ...
Mihai Socaciu's user avatar
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 ':...
Alihan Gedik's user avatar
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. ...
siba36's user avatar
  • 55
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. (...
DuyMoiChoi's user avatar
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 ...
xx90TDrgA's user avatar
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 ...
Chanaka N. Bandara's user avatar
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 {...
UgochukwuScript's user avatar
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 ...
Ravi Ranjan's user avatar
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 ...
Irish Redneck's user avatar
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 , ...
karan's user avatar
  • 113
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 ...
Carlos Garcia's user avatar
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 ...
sandeep's user avatar
  • 519
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 ...
Jeya21's user avatar
  • 1
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?
banan3'14's user avatar
  • 4,112
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/...
SAN SHEVA's user avatar
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 ...
Recep4153's user avatar
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 ...
ShaRy's user avatar
  • 69
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 ...
user17424435's user avatar
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 ...
JohnyTex's user avatar
  • 3,383
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 ...
Kariem Seiam's user avatar
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 ...
Minh Giang's user avatar
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 ...
SmallWorld's user avatar
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 ...
Venkat's user avatar
  • 394
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 ...
khizar's user avatar
  • 9
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 ...
Eli's user avatar
  • 31
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 ...
Jonathan Wood's user avatar
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 ...
Clemens Putz's user avatar
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; ...
oggy oggy's user avatar
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 ...
Humayun Kabir's user avatar
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: ...
Bedirhan Gündöner's user avatar
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 = "...
Rustem's user avatar
  • 1
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 ...
Adnan's user avatar
  • 11
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 ...
Salar Azad's user avatar
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 ...
CanSaL's user avatar
  • 11
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 ...
Marlonchosky's user avatar
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 ...
Rohan Ahmed's user avatar
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 (...
Idra's user avatar
  • 153

1
2 3 4 5
19