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?
User | Count |
---|---|
18 | |
9 | |
8 | |
5 | |
5 |