cancel
Showing results for 
Search instead for 
Did you mean: 

Enable GPS Capture in Background

`Location.Latitude`, `Location.Longitude` and `Location.Altitude` stop reporting when a phone screen is locked and when a phone goes to sleep. This negates any kind of IOT scenario. We need this!

 

I've been getting a popup on my phone lately that says "PowerApps is running in the background, do you want to allow or only allow when the app is in use?".

 

Since PowerApps is ABLE to run in the background, please enable the capture of location information from our apps when the screen is locked/phone asleep.

 

Thank you

Status: New
Comments
Microsoft

Hi. My team is new in the PowerApps org and we are looking at adding geospatial capabilities to the Power Platform. We would love to chat more about your requirements around mapping. If you are interested please feel free to DM me your contact information or email me at steve.macbeth@microsoft.com.

Super User
SURE WISH WE COULD BUILD CONTACT TRACING POWERAPPS USING GPS IN THE BACKGROUND...
Frequent Visitor

@seadude 
Hi, I know it's already old post, but for someone who may be interested.

I read in an article, that it's possible to execute repeating background task with audio control. I didn't have the time to test it myself, but may be worth trying it out.


Sorry, this is a Japanese article so please use your favorite translation tool.

https://papasensei365.com/powerapps-get-latlong-background/


Key points:

- Do not use timer for background tasks. Use repeating audio control instead.
- Write your task in Audio OnEnd event.

- Exculde Power Apps and Microsoft Authenticator of battery optimization list since the portable device OS may kill Power Apps when it's not used for a long time.

- When setting your phone to sleep mode, Power Apps must be in foreground.