Closed veitbjarsch closed 1 year ago
Sounds right, this isn't a dynamic property and should be applied when the service starts... Why would you need to change it?
But the service restarts once I update the config. I also tried to stop and restart the geolocation, but it produces the same problem.
I need to change it because I only need the Foreground tracking if a specific progress is running other than that the tracking is only important when the app is in focus. So a Foreground message is not necessary.
Update: Okay now I realize that all of these functions are promise based if I don't add any handler to them. Good to know. This solved all of my problems and I can even cleanup my code.
Describe the bug Changing the startForeground config setting from false to true, while the service is running, doesn't apply the change.
To Reproduce Steps to reproduce the behavior:
Expected behavior Should display the foreground notification in the
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context The other way around it works without a problem (starting in foreground and switching to background mode.