MatchaBackgroundService icon indicating copy to clipboard operation
MatchaBackgroundService copied to clipboard

Feature Request StartForeground Android

Open Buzzker opened this issue 5 years ago • 2 comments

Hi, I enjoy working with the library. I'd like to propose a feature to "StartForeground" service for Android. It requires a notification though to be shown when the service is moved to foreground. Service can be moved from foreground by using "StopForeground", without stopping the service itself. This allows the service to run even if the UI is swipe-closed, and when the app is launched again it can reconnect to the running service. It also prevents the Android to kill the service if it consumes too much CPU. https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/services/foreground-services

I know it is a cross-platform library and I didn't find any similar feature for iOS services, didn't look into other platforms. Do you feel that it is something nice to have?

Buzzker avatar Sep 03 '19 15:09 Buzzker

The usage example can be a GPS running app which can be minimized and should be prevented from killing by the System. On iOS the app is killed after around 45 minutes if it is minimized and still running the services.

Buzzker avatar Sep 04 '19 07:09 Buzzker

did you solve it? because I'm looking for that too.

SairaMtz avatar Sep 20 '19 23:09 SairaMtz