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
-1
votes
2 answers

Background service in iOS with notification every hour

is it possible somehow make an app like service, which send every for example hour notification to user and will be running on background all the time? Thanks
-1
votes
1 answer

Android background JSON value monitoring service, Notification on value changed and greater. What is the best approach?

I want to create a service in android that periodically checks a JSON value and if that value has changed and is greater it should trigger a notification. I want to know whats the best way to do this and how the values are saved and compared.
-1
votes
3 answers

ios nstimer run in background for check alarm time is equal to current time and play audio

I googled it for hours, but could not find any information if there is any way to keep a running NSTimer active when the app is running in the background ? Please Help me , when app is go to background then one function run and each sec check alarm…
-1
votes
2 answers

Android - service running in the background

I want to call a method every time when the battery goes to 50%, even when the app is closed or the screen is turned off. I tried Service and BroadcastReceiver but when I remove the app from recent apps list the Service is stopped and I doe't get…
-1
votes
1 answer

How to start a service from a Phonegap plugin?

I want to start a java service from a phonegap plugin so I can do some background processing for the application. I am using cordova-2.0.0 . Now i found some background service plugins for cordova-1.8.1 but they didint run in 2.0.0 . I would really…
aayush shrestha
  • 1,858
  • 2
  • 17
  • 33
-2
votes
2 answers

Reacting on cancellation in BackgroundService from outside

If I start the following example in .NET Core BackgroundService on debug mode: protected override Task ExecuteAsync(CancellationToken stoppingToken) { while (!stoppingToken.IsCancellationRequested) { Task.Run(async () => await…
-2
votes
2 answers

How can I execute a method every year using BackgroundService in ASP.NET core Application?

public async Task DoWork(CancellationToken cancellationToken) { var scope = serviceScopeFactory.CreateScope(); var context = scope.ServiceProvider.GetService(); while…
MADMAX
  • 152
  • 1
  • 3
  • 17
-2
votes
2 answers

how to create service to update location in background

public class MainActivity extends AppCompatActivity { private static String lat_long_time=""; private static final String TAG = MainActivity.class.getSimpleName(); private static final int PERMISSION_REQUEST_CODE = 1; private static final int…
-2
votes
1 answer

Android start service that continue read incoming messages without app start

i want to make an application in which i start service which start broadcast reciever for sms_read and every time when new sms come and reciever detact that message. no matter app is running or not.
Julia Williams
  • 103
  • 1
  • 5
-2
votes
1 answer

leaked Intent Receiver missing a call to unregisterReceiver

please before you don't like my question , please read the details .. what i am trying to do is to use a broadcast receiver when screen-off , so i want my app to start if the screen goes off .. here is my broadcast receiver code : public class…
-2
votes
1 answer

How to make application be executed from background service?

I want to ask how alarm applications work on mobile. As it doesn't drain battery, and i think in my problem (below) i can use same approach. And i don't know how to use background service, that it executes the main application with given period. I…
Javidan
  • 566
  • 1
  • 9
  • 25
-3
votes
1 answer

Sends SMS in Background when Power Button is pressed

Is there a way to tell my app to do something while it's running in the Background? What i try to do is to send a sms when i press the Power Button. This is what i wrote and it works currently while i'm inside the app: public boolean…
bfmv991
  • 109
  • 1
  • 12
-4
votes
1 answer

How to run a app in the background forever?

I want to make a app that runs in the background,even after removing it from the recent apps.
maneesh reddy
  • 13
  • 1
  • 3
-4
votes
1 answer

How to create background service which constantly check GPS status?

For My Application GPS is required constantly. If GPS is turned off, then I want to show a prompt message to the user to turn on GPS. How should I use background service to perform this task?
-4
votes
1 answer

Need really simple help creating AlarmManager (Beginner)

I need a really simple explanation for the following: I need a background service for my app, that runs even if the app isn't open. The examples I searched online don't work for me or my cases, so I really need detailled help here. On the push of a…
1 2 3
59
60