Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get current state of the foreground service #22

Open
Nohac opened this issue Feb 3, 2020 · 1 comment
Open

Get current state of the foreground service #22

Nohac opened this issue Feb 3, 2020 · 1 comment

Comments

@Nohac
Copy link

Nohac commented Feb 3, 2020

It would be nice to have a function or a callback/event to get the status of the foreground service.
I currently need a way to find out if the service is running or not, as I'm providing users the ability to start and stop the service.

Without knowing the state, it's impossible to, for example, create a start/stop button that changes based on if the service is running or not.

I can track the state myself based on the button presses, but if the user somehow kills the service, exits and re-enters the screen or I loose track some other way, It's impossible for me to get the current state back.

@geocfu
Copy link

geocfu commented Apr 1, 2020

Thats very true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants