A background service is a computer service that runs "behind the scenes" (i.e. in the background) and without user intervention.
Questions tagged [background-service]
889 questions
-1
votes
3 answers
How to keep a service running when I remove the app from minimised apps list?
I have a service running to track user location at a specific time interval. I have used foreground service for Oreo & post-Oreo devices and service for pre-Oreo devices. The service runs well when the app is minimised but when I remove the app from…

Shadman Sakib
- 219
- 2
- 10
-1
votes
1 answer
How does the OS determine which threads to suspend?
The title isn't good, so please read this description to understand what i mean.
I created a background service that i want to run for a long time, by definition services on android can run even if user switch the app or even closes it.
My question…

Rafael Lima
- 3,079
- 3
- 41
- 105
-1
votes
1 answer
Services getting killed on custom OS Devices
I'm a newbie android developer.. I have trouble keeping the background services broadcast receivers etc alive on no stock android devices.. i have tried many solutions and couldn't find one that works... Please help.

mustansir makda
- 3
- 2
-1
votes
2 answers
Invalid channel for service notification error even after creating custom channel
I've implemented a startForeground() method to start the ongoing notification which is called in onCreate(). There are two usages in two different classes. I'm testing on API 27 (Android 8.1)
First Usage…

Nissim R
- 542
- 11
- 29
-1
votes
1 answer
How to return data to an Activity what was destroyed by Android
The title isn't good, please read bellow to understand better my problem
I have an Android application, one of its tasks is time consuming and will often take between 2-5 minutes to be finished... this task is done by a background service which has…

Rafael Lima
- 3,079
- 3
- 41
- 105
-1
votes
1 answer
WebAPI endpoints without controllers
Is it possible to call WebAPI endpoints without extending the Controller base class? I have a background service (base class HostedService implementing IHostedService) in .Net Core. My class structure is already set in stone so I can't change the…

LeonidasFett
- 3,052
- 4
- 46
- 76
-1
votes
1 answer
Notification on child added/modified
How do i show a notification in my app when a child is added/modified in firebase database ? I am using android studio. I have seen a lot of answers to use FCM or GCM .
But is there a way that i can use background service (which doesn't terminate…

Ashish Kumar
- 1
- 1
- 1
-1
votes
1 answer
Background Service not working on 7+ android version
I want to show local notification in an Android app that i am working. notification are based on network transaction completed in background.
I have tried service, intent service, jobservice etc but nothing is working when the app is closed.please…
-1
votes
2 answers
Background Service crashing occasionally
When my application is in idle state i.e. no one is using the application or it is closed but a background service which is running continuously. I have issue that background service in my application is crashing. It just happened two times. It is…

Waqas Ahmed
- 153
- 11
-1
votes
1 answer
Unstoppable Service not working
I'm trying to use an unstoppable background service so that I can get call detail for the new call in the alert dialog every time and notify the user with an alert dialog. The problem is that service is stopped after close app. I'm not entirely sure…

mitesh makwana
- 269
- 3
- 11
-1
votes
2 answers
How to Upload images even when the app is killed in android
I'm calling upload images api, in IntentService which is running in the background and upload the images to server.
IntentService, onHandleEvent method is called and run in the background, what I understand is IntentService will execute the task and…

Praneeth
- 1,260
- 18
- 37
-1
votes
2 answers
Is it possible to start an Android app without putting it to the foreground?
Is it possible to start an app in the background? For example, if a push notification is received, then the app is started in the background,without invoking the UI/screen?
Because at the moment i have to invoke the app to the foreground and then…

John
- 983
- 1
- 13
- 31
-1
votes
1 answer
Call google fit api background service
I'm trying to call google fit API in a background service, but when I clean the recent apps, the service stops. Maybe, use the alarm is the best way to do the service unstoppable, but it crash without leaving an error in the log. Is this the best…

zasaz
- 2,404
- 2
- 15
- 27
-1
votes
2 answers
Creating service in IOS thats sends data to server every 15 min
Hi i have to create a service in IOS OS that sends data like current location details,battery level,and other info every 15 min to the server via post api ,I understand it will not work once app is removed from app stack forcefully.But can i do…

Raghvendra srivastava
- 105
- 2
-1
votes
1 answer
How to start new Activity on trigger, if the App should run in Background
So my question is fairly simple, but I cannot find a solution of the entire idea. Running Android App in background should be achievable with Background Service . However, I am not sure how to make "wake up" the service by a specific button press…

David Kasabji
- 1,049
- 3
- 15
- 32