problem using HERE()

Hi, I am working in a Geofence solution to track how much time my employees spend in some client point.

I capture the GPS using HERE() . Then I calculate the Geofence using the DISTANCE() formula looking in a Table with all my client points.

Every time the employe create a New record (DATE, USER, GPS,...) if GPS= 0,0 I know that is very probably that the employee has turned off his phone GPS and I could ask him to turn on for the future :).

The problem is that I detected an important problem.

Imagine that situation:

1) The employee turn ON his phone GPS

2) Generate a new record (clock -in) in the Geofence zone

3) The employee turn OF his phone GPS. At this point the HERE() function is equal to the last GPS position until he turned off. HERE() is still working showing the location at the past.

4) The employee start working in my client point, and leaves ONE hour later the client point, but HE do not use the clock-out button ( some action), ...goes to the park, have one more hour looking at the sun, and then he use the clock-out button. The result is a 2 hours of work.

 

Is there some solution in AppSheet to know that the user has turned off his GPS ?.

0 5 323
5 REPLIES 5

Steve
Platinum 5
Platinum 5

Hi Steve !

Previous my post, I read this articule and tried using ChangeLocation, but Changelocation still take the last GPS after the user turn OFF the gps. Like HERE(), Changelocation do not take de value 0,0. 

If I could take the 0,0 value when the employee turn off his phone GPS , I could claim him for this.

Is there another way?. Thanks.

I'm not aware of a way to determine whether the user has turned off (or manipulated) the GPS.

I don't believe a location of (0, 0) can be reliably interpreted to mean the GPS was off , or that the user was responsible in any way for that reading.

I myself have gotten (0, 0) while tinkering with my laptop, and I know definitively I didn't turn off location services.

I suspect (0, 0) might be returned when the device encounters any problem getting the current location, not just when the GPS is off.

ok Steve I understand what you said.

Thanks.

Hi, 

First of all sorry for my English. And I'm quite new with AppSheet.

I have the same problem. If I start my App with GPS off I get 0,0 and with Distance I can tell the user the GPS is off.

But if you start the App and then you set off GPS It shows the last position. If you closes the App it shows 0,0 again.

Is there any update with this? Can you "refresh" HERE()? 

I think it's a really important problem.

Thanks in advance

Top Labels in this Space