I'm developing an app to manage employee check-ins and check-outs based on their GPS location when they press the "Check-In/Out" button. I've set it up so that the "Check In/Out" button is only available if the device is within a 150-meter radius of the designated coordinates.
However, I've encountered an issue: If a user enables GPS Location for the first time to get an accurate location and then turns off GPS Location, the last known location is saved. Even if they move to a different location (outside the allowed radius), they can still perform "Check In/Out" as normal (unless they quit or completely close the app). This presents a loophole for employees to cheat the timekeeping system.
Is there a way to make it so that if GPS Location is turned off on a phone or computer, the recorded location will return a value of 0,0?
Require GPS Permission at Check-In/Out: Ensure that the app checks for GPS permission every time the "Check-In/Out" button is pressed. If the GPS is turned off, prevent the check-in or check-out action from proceeding. This ensures that users cannot bypass the location requirement by turning off their GPS.
Force Location Update: Make the app update the location before allowing the check-in or check-out action. Use a virtual column or an action to verify the current GPS status and enforce it. This ensures that the location data is accurate and up-to-date each time an action is taken.
Regular GPS Status Check: Implement a mechanism to periodically check the GPS status and prompt the user to enable it if itโs turned off. Utilize AppSheetโs NOW() function combined with a location update to ensure the location is current. This helps maintain accurate location tracking even if the user tries to turn off the GPS after initial activation.
Action with GPS Validation: Create an action that validates the GPS status and updates the location before performing the check-in or check-out. If the GPS status is invalid (e.g., location not updated), prevent the action. This ensures that any attempt to check-in or check-out without an active GPS signal is blocked.
Did you have any experience with those methods?
The problem is that when you turn on the GPS, Appsheet remembers the location. Even if you turn off the GPS, the phone still uses that location for other actions ๐
Hi,
I have the same problem. Even if the user donยดt close the app, the GPS location remains. In my app, the user only can check if itยดs less that 500 m from the check point. But it he checks and doesnยดt close the app the GPS position doesnยดt change.
can anybody help me? By the way, Iยดm very expert with Appsheet
Thank you
User | Count |
---|---|
19 | |
9 | |
8 | |
6 | |
5 |