WidgetKit UI that refreshes constantly (like Clock)

Using the TimelineProvider I am only able to update my UI every five minutes. Is it possible to update my app more frequently (like every five seconds)? Although I set the next update to five seconds, it seems like the minimum is five minutes.

Is there any possibility to detect when the app becomes active (i.e. is not in the background)? Does the new lifecycle offer such possibilities?

My plan is to start a timer once the app becomes active (and disable the timer once the widget is no longer visible).
WidgetKit UI that refreshes constantly (like Clock)
 
 
Q