MatchaBackgroundService
MatchaBackgroundService copied to clipboard
Feature Request StartForeground Android
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?
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.
did you solve it? because I'm looking for that too.