background-service Questions
4
Solved
Google has its clock app, which includes its stopwatch. I'm currently trying to create in my app a (count-up) timer, or you can call it a stopwatch, that will be able to run in the background, and ...
Henson asked 5/4, 2022 at 20:41
4
Solved
I am currently writing my first Android application and I keep running into references to background and foreground services. Since I intend on using a service in my application I was hoping to get...
Taster asked 21/8, 2010 at 20:1
1
Solved
I have a Background Service that performs some tasks and jobs on a long running thread. For simplicity, We'll consider this as a scheduler that makes an async SQL call and repeats. Now I use AsyncL...
Eyewitness asked 2/5 at 15:35
2
Solved
I have a BackgroundService hosted in .net generic host as follows:
var builder = Host.CreateDefaultBuilder(args);
builder
.ConfigureLogging((hostingContext, logging) =>
{
logging.ClearProvi...
Seraph asked 8/4, 2020 at 20:47
2
Solved
On ASP.NET Core I'm observing a strange behavior, that was actually reported in BackgroundService not shutting down, stoppingToken never set with .net core generic host but without the root cause e...
Balustrade asked 29/8, 2022 at 19:58
7
Solved
I am trying to develop a timer app in Flutter that includes multiple countdown timers for different tasks. However, I'm facing an issue where if I start a timer and then press the back button, the ...
Heartrending asked 25/12, 2019 at 16:27
13
Solved
After upgrading my phone to 8.1 Developer Preview my background service no longer starts up properly.
In my long-running service I've implemented a startForeground method to start the ongoing notif...
Engine asked 28/11, 2017 at 12:32
2
Solved
I'm trying to write a simple web api project with a background service executing a method every second.
This method loops over a list and just prints out (for the moment) some statistics.
I declare...
Southland asked 25/9, 2019 at 20:9
3
Solved
Migrating from the legacy .NET Framework I need to create a long time background process worker.
Looking at the documentation I found a BackgroundService class, which is used for this kind of pur...
Bracy asked 22/2, 2020 at 20:18
2
I am using React Native together with Expo to build an app for tracking workouts.
I want to implement a foreground service for ongoing workouts but also to keep Expo in my project.
I tried to use t...
Fin asked 21/5, 2022 at 14:39
2
i am using shared_preferences: ^2.0.7 with flutter_background_service: ^0.1.5 in flutter
but when call shared preferences give me the error
"Flutter: Unhandled exception: MissingPluginExceptio...
Festive asked 8/9, 2021 at 10:28
1
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await GetStorage.init();
await Firebase.initializeApp();
await PushNotificationsService().init();
FirebaseMessaging.onBackgroundM...
Erstwhile asked 28/11, 2022 at 11:16
4
Solved
I want to run a background job in ASP.NET Core 2.1. It has to run every 2 hours and it will need to access my DI Container because it will perform some cleanups in the database. It will need to be ...
Pyromania asked 11/12, 2018 at 15:56
4
I want to check the database in my app every 12 hrs for rows with date column having corresponding date. This is accomplished by writing service in android. But is there any equivalent of services ...
Nevertheless asked 21/5, 2013 at 10:35
1
I have built an android app that performs some downloads followed by some time consuming processing. My goal here is to do the downloading and the processing in the background. I have read about ba...
Cleodal asked 13/12, 2021 at 6:27
3
Solved
I create a BackgroundService like this:
public class CustomService : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken cancellationToken)
{
do
{
//...
await Ta...
Flowage asked 9/6, 2021 at 6:5
11
I need to check programmatically if the auto start permission for my app in MIUI phone is on or off. Facebook and whatsapp have this permission already enabled by default , how can I do so?
Roundfaced asked 7/9, 2016 at 9:31
2
Solved
I create the BackgroundService:
public class CustomService : BackgroundService
{
protected override async Task ExecuteAsync(CancellationToken cancellationToken)
{
//...
}
}
and I added to the ...
Somatotype asked 21/6, 2021 at 8:55
5
Solved
I have this worker service kicking off jobs but hourly it checks for jobs. How can I get it to check on the hour rather at the run time hourly?
public class WorkerService : BackgroundService
{
pri...
Toandfro asked 15/4, 2022 at 12:18
1
Solved
I have an app that runs a stopwatch service, and I run the service in the foreground.
I have a notification showing the timer, that updates each second.
The notification stops updating 30 seconds a...
Bumptious asked 14/4, 2022 at 2:12
4
Solved
Work Manager is a new API and I try to execute task every second, but it doesn't work.
This is my worker class
class TestingWorker : Worker(){
override fun doWork(): Result {
Log.i("CheckWorker...
Houser asked 6/7, 2018 at 4:9
3
Solved
I'm writing a background service using .NET's HostBuilder.
I have a class called MyService that implements BackgroundService ExecuteAsync method, and I encountered some weird behavior there.
Inside...
Buskirk asked 3/7, 2019 at 13:20
3
Solved
I'm writing a hosted service in .Net-Core which runs a job in the background based off of a timer.
Currently I have to code running synchronously like so:
public override Task StartAsync(Cancella...
Basie asked 19/12, 2018 at 4:27
5
Solved
In a .Net 5 Web API, I would like to run a background task that sends out bulk emails and SMSes.
I know I can create a service that inherits from BackgroundService, and then add it to the DI Contai...
Paquin asked 28/1, 2021 at 14:7
3
I just want to keep bluetooth on, and to do that I listen the bluetooth state and if it is turned of, the broadcast receiver could enable it. And I want it to run when the app is closed too. So I a...
Warrantable asked 10/6, 2019 at 2:12
1 Next >
© 2022 - 2024 — McMap. All rights reserved.