I would like to build a functionality in my application that when I click on the button the time stoper will count to 5 minutes, but I would like to have it still in progress with exact baner and second when I go to background with application?
How to achieve this what kind of tools I can use? Foreground service, notification and as I understand it is different than widget?
How to start that kind of service with the same custom notification not immadiately but i.e. in next 20 hours or when I trigger my service from backend with somekind of data, then launch this notification and foreground service? Can I use Coroutine work manager for it?
The functionality of this should work exactly like in Spotify. You launch music(in my stuff it is just timer) then when I close my app I have notification that is open and receive data and show for the user. spotify notification