Timer doesn't work when onPause event

Hello Everyone,

I have a problem , I want to make a simple timer that if the user is off the screen or out of the app for 5 seconds or more an event occur or something ?

here's a copy of my blocks but it seems doesn't work at all , anyway to solve that issue.

thank you

You can't execute most things in the app if you're outside it...

...unless you use an extension that can execute tasks in the background. Here's (in my opinion) the best one:

but i tried to fire a notifer on pause and it worked but the timer doesn't

anyway if i used that background tasks extension does it help to solve that basic issue

I hope my response is evident.