cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
neonwhite
Frequent Visitor

Location Function: Update Frequency?

I have a basic timer running to collect GPS coordinates as close to real-time that I can possibly get from a field app that is going to be used at our farms. However, testing the Location function on my laptop indicates that it's only updating around every 90 seconds.

 

Is this a hardware limitation, or is it a limitation of Power Apps maybe? 90 seconds is much too long for my purposes, where I would need it to be closer to every 1 second. I realize this will generate a lot of temporary data, but we can deal with that with a background task.

 

Thank you! I've looked through all the GPS posts in this subforum but didn't find anything about this.

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

I've done investigations similar to yours on Power Apps' location capabilities and you are seeing a hardware limitation. Try publishing your test app to a mobile device that generates positions at 1Hz and Location() will pull in new positions at that rate too.

 

One tip when using this functionality, especially on a mobile device: don't accept the first ("cold") position returned from the device as particularly accurate. If the geolocation feature on the device hasn't been turned on recently, that first position can be a long way from truthful. I often trigger the Location() function in OnStart so that the device has a few seconds to filter and improve its position estimation before doing anything important with those coordinates.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
BCLS776
Super User
Super User

I've done investigations similar to yours on Power Apps' location capabilities and you are seeing a hardware limitation. Try publishing your test app to a mobile device that generates positions at 1Hz and Location() will pull in new positions at that rate too.

 

One tip when using this functionality, especially on a mobile device: don't accept the first ("cold") position returned from the device as particularly accurate. If the geolocation feature on the device hasn't been turned on recently, that first position can be a long way from truthful. I often trigger the Location() function in OnStart so that the device has a few seconds to filter and improve its position estimation before doing anything important with those coordinates.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
neonwhite
Frequent Visitor

Thank you, I think you were correct because it seems to work okay on my phone.

 

Also, that is a great tip about triggering OnStart.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,835)