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.

889 questions
9
votes
1 answer

Is Microsoft.NET.Sdk.Worker compatible with an API project?

A Visual Studio API project created via "new project", "ASP.NET Core Web App", "ASP.NET Core Web API" results in a project file that starts with... If this API needs a long running task it seems likely that a…
H2ONaCl
  • 10,644
  • 14
  • 70
  • 114
9
votes
1 answer

how to start activity from background service in android Q os, without click 'Allow background activity starts' from settings of developer option?

i want to start activity from background service in Android Q OS But it will give me message 'Background activity start from com.test.testandroidapp blocked.See g.co/dev/bgblock'. According following…
9
votes
4 answers

Stop background Service When application goes to background

I have background service in my android app,i start service from MainActivity onResume() method and it is work correctly.But how can i stop service when user press home button.Because currently when user press home button then application move to…
Ravi Bhandari
  • 4,682
  • 8
  • 40
  • 68
9
votes
5 answers

How to debug an Android Background Service?

I have been developing a PhoneGap application for Android which contains a Background Service. My question is: How can I debug this service? Is it possible to debug using an AVD and go step by step? or can I use my own device to achieve…
pointnetdeveloper
  • 224
  • 1
  • 3
  • 7
8
votes
2 answers

How to create a never ending background service in Xamarin.Forms?

I am monitoring the user's location every 15 minutes and I just want the application to continue sending the location even if the user closes the application in the taskbar. I tried this sample but it's in Xamarin.Android…
8
votes
1 answer

How to consume scoped service with dependency in a background task

Here is my scenerio. I want to use background task to send newsletter to subscribed users. This is done by MailService, which has UnitOfWork as dependency. I tried the solution from learn.microsoft.com so in my case I use a method of IMailService…
8
votes
2 answers

Access Running service and call its method?

I've created a service that sends location in back ground now i want to create a method in my ACTIVITY which will access the currently running instance of service and will call its method Say Location Service having Methode SendLocation() { ///…
user1448729
7
votes
2 answers

Use foreground service with Expo and React Native

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 this approach:…
7
votes
2 answers

Open Android App by sending a text message?

I was wondering if it is possible to open an android app on someones phone by sending them a text message, assuming the user already has the application installed on his/her phone. Sort of like where's my Droid application? Could I send it like a…
IZI_Shadow_IZI
  • 1,921
  • 4
  • 30
  • 59
7
votes
2 answers

Camerax run in service . How to get lifecycleowner or run without it inside a foreground service?

Use case : is that I have to run camera in background inside a service without any activity or fragment Blocker : New camerax session is bind to lifecycleowner but the service don't have any .So how to get this object or run without it ? Already…
7
votes
0 answers

What is the equivalent to the ServiceBase.RequestAdditionalTime in .net core using a BackgroundService?

In our .NET framework services, we always request additional time from the service control manager when our services start to give them more time to start than the default (30 seconds?) before reporting that they haven't started. We do this using…
Simon Gymer
  • 417
  • 3
  • 12
7
votes
2 answers

Record video in background and also when screen is turned off

I'm trying to create a Background Video Recording android application where a video is recorded in background (When app is not in foreground) and also when the screen is turned off. I've found some applications on the PlayStore that can carry out…
Ebad Ali
  • 600
  • 1
  • 6
  • 29
7
votes
2 answers

.Net Core 2.1 Reporting progress of long task

I am in the midst of re-writing a very old VB legacy application into a browser based C# ASP.Net application using Core 2.1 and Entity Framework back-ended to SQL server. Several of the functions are long-running tasks. One example is an import of…
7
votes
1 answer

How to keep service running in background in Android O?

I need to keep a service running in background. This service is used to keep a Socket.IO/MQTT connection. In versions previous to Android O there were no problem keeping the service alive, but in Android O this is not possible because of the…
Mariano Córdoba
  • 1,097
  • 1
  • 13
  • 29
7
votes
4 answers

Background Service Stop when removing app from recent

Background service is stop, when removing my app from recent in oppo & vivo mobiles, & Broadcast reciever also not working in that case.
1 2
3
59 60