I have an app that manages orders.
It has a tab controller with three tabs, the second tab submits the order and the third tab shows all the ongoing orders once they are submitted.
Each order generates an estimated time remaining for delivery.
On the third tab, when showing the ongoing orders, there is a progress view which fills up as the time for delivery from the order elapses.
How can I fire a timer on the second tab when the user submits the order, and keep the progress view on the third tab updated with such timer?
I also wish for the user to be able to close the app and have the timer run in the background
What is a possible workaround for this?