I want the service to be off when user actively closes the app. I tried closing it by watching app life cycle detached state, as well as at the onDispose of the root wodget, but none worked. Is there a simple way to automatically close the service when app is closed?
I want the service to be off when user actively closes the app. I tried closing it by watching app life cycle detached state, as well as at the onDispose of the root wodget, but none worked. Is there a simple way to automatically close the service when app is closed?
Thanks in advance Shlo