In a Live Activity, we have use case to show some countdown for the user o finish some tasks before a deadline. When the deadline reaches, we want to show a different message. We create a timer in our Live Activity codes, listen to it and want to change the text when the timer fires. But, the timer never fires. We write another simple codes to verify:
We didn’t see the countdown effect. We are wondering if
- Timer is disabled in Live Activity, so it never fires
or
- State variable is disabled, so even Timer fires and changes State variable’s value, View cannot pick up the new State variable’s value