web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Running timer in the b...
Power Apps
Unanswered

Running timer in the background with app minimized

(0) ShareShare
ReportReport
Posted on by 15

I ran into a problem with PowerApps not having built-in capabilities for running background tasks or timers… the app must be in the foreground for the timer to run. The business need is time tracking of 100 snow removal employees on 100 separate properties. Each property is billed for the hours worked to clear the snow. The employees will move between properties throughout the day and we do not want to count on them to check in and out of each job… if we get them to check in and out for the day we are happy. The game plan was to have a start button to kick off the process and every 5mins the timer sends the lat & long into a SQL database for each user until they hit the end button. In SQL we would geo code against the fences for each property and roll the hours together. The key is to get the user with their current lat and long every 5mins

 

Searching I found others that faced the same challenge and not really a clean way to handle…

How would you approach?  Has there been changes to PowerApps to fix this that can be activated? I have never used Flows… if this is a viable option, please provide newbie level instruction or pointers.

 

Thank you in advance for your reply.

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Hi,

     

    Is this a mobile device? or a laptop?

    If its a mobile device, some of it is dependent on the OS, not the app at all unfortunately.

     

    And no for Power Automate. Similar issues with PA Desktop, which youd have to combine with PA Cloud
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • AccessPowerApps Profile Picture
    15 on at

    It needs to be a phone app ... phone in one hand and a shovel in the other. 

  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    Yeah, sorry its not just an issue specifically in a power app, the literally phone iOS/Android/Windows etc have different requirements/abilities and then its not so much more than data sync.

     

    sorry
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • AccessPowerApps Profile Picture
    15 on at

    Is there a way to get off the rails and do anything outside the box or custom and still meet the goal?

  • Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at

    I am unaware of a way to do what you are asking in the background. I'd have to really think about it.

     

    Hmm I wonder if you could use an HTTP Connector (in the app), in the Timer, that would call an API you expose (Azure Function, Web API, Power Automate HTTP Trigger)... I haven't tried it but possibly that would still run in the background.

     

    I'd say if you dont mind giving that a shot.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • AccessPowerApps Profile Picture
    15 on at

    Thank you for your responds FLMike

    With the lat and long changing every 5 minutes those parameters would have to come from the clients device and then do a Patch or call an Endpoint.  If the timer will not run in the background on Power Apps how can we trigger that event? It would not run for me in the background with a simple UpdateContent to increment a number on a label and nothing else. It is my understanding that Power Apps does not have any kind of background services, but Power Automate does. If we install Power Automate alongside Power Apps has anyone worked out a solution?  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard