A geofencing attendance app lets staff mark in or out only when their phone is inside a boundary drawn around the workplace. The simplest and most privacy-friendly design checks location once, at the moment someone taps to punch in, instead of following the phone all day. That choice also decides how hard the Android, iOS and Google Play rules will be for you.
This guide covers the two designs, the features that matter, the platform rules and the data protection points to plan for. It is not legal advice: for your case, speak to a lawyer who works on employment and data protection law.
Two ways to build geofenced attendance
There are two common designs. Most businesses should start with the first.
| Tap to punch, location checked once | Automatic punch on entering or leaving | |
|---|---|---|
| How it works | The employee opens the app and taps Punch in. The app reads the current location and checks it against the site boundary. | The phone's geofencing service watches the boundary in the background and records entry and exit. |
| Location access needed | Foreground only, while the app is open | Background (Android) or Always (iOS) |
| Store review effort | Lower | Higher: Google Play asks for a declaration and a video |
| Reliability | Predictable, because the employee is present at the moment of the check | Alerts can arrive minutes late and may fail with poor network or Wi-Fi off |
| Privacy | One location reading per punch | The phone is watched whenever it is near the site, including off shift |
Automatic punching sounds convenient, but it brings more permission prompts, policy work and questions from staff.
Features worth building
- Sites and boundaries: an admin screen to add each office, factory or shop with a centre point and radius, and to assign staff to one or more sites.
- Punch in and out: a clear button, the result shown on screen, and a reason field when someone punches from outside the boundary.
- Exceptions and approvals: out-of-boundary punches, missed punches and field visits go to a manager to approve or reject, rather than being silently blocked.
- Reports and export: daily and monthly attendance, late marks and overtime, with export for payroll.
- Employee view: staff can see their own punch history and the location data stored against each punch.
For help scoping the first version, see our mobile app development service.
Android location rules
Android separates location access by when it is used and how precise it is.
- Foreground location covers access while an activity of your app is visible, or while it runs a foreground service with a persistent notification. A tap-to-punch design fits here.
- Background location is anything else, including the Geofencing API. From Android 10 you must declare
ACCESS_BACKGROUND_LOCATIONto request it. - Precise or approximate:
ACCESS_FINE_LOCATIONgives precise location;ACCESS_COARSE_LOCATIONgives an estimate. If the user grants only approximate location, the app gets only approximate location, and the same choice applies in the background.
Google Play has announced that from 27 January 2027, apps targeting Android 17 (API level 37) or higher that need precise location only for one-time, user-initiated actions must use the Android location button. Such apps may request ACCESS_FINE_LOCATION only if neither the location button nor approximate location can support the feature.
For the geofencing design specifically, Android's documentation says:
- The app must request
ACCESS_FINE_LOCATION, plusACCESS_BACKGROUND_LOCATIONif it targets Android 10 or higher. - On Android 11 and higher, the permission dialog has no Allow all the time option. The user must enable background location on a settings page.
- An app can have up to 100 active geofences, per app and per device user.
- Android recommends a minimum radius of 100 to 150 metres, because Wi-Fi based location is usually accurate to 20 to 50 metres.
- Alerts are not instant. Latency is usually under 2 minutes and can reach about 6 minutes if the device has been still for a long time.
- After a reboot or cleared app data, the app must register its geofences again.
Google Play's location policy
Google Play treats background location as sensitive. Its policy says an app should request background location only if it is required for the app's core functionality and gives users a significant benefit. If you go the automatic route, plan for:
- A prominent in-app disclosure shown before the system permission prompt. It must use the word location, say that location is used in the background and name the feature. A line in the privacy policy is not enough.
- A permissions declaration in Play Console under App content, describing one location-based feature.
- A short video, ideally 30 seconds or less, showing the disclosure, the prompt and the feature working in the background.
A tap-to-punch app that reads location only while open avoids this background declaration, though Play also asks for a declaration covering foreground location, and the location button rule above applies to newer target versions. For the rest of the store submission, see our Google Play launch checklist.
iOS location rules
Apple's Core Location has two authorization levels.
- When in Use makes location available while the app is in use.
- Always makes location available at any time. It is the only level at which the system will launch a terminated app for region monitoring, which is Apple's name for geofencing.
- You must add a usage description for When in Use access, and another for Always access. Authorization requests fail immediately if the required keys are missing.
- If the app already has When in Use, it can ask for Always later, but only once.
- Apple advises asking for location when the person uses the feature that needs it, not at app launch.
- People can change the app's permission at any time in Settings, and they can grant reduced accuracy instead of precise location. The app must cope with both.
The DPDP Act and employee location data
An employee's location is personal data, so India's Digital Personal Data Protection Act, 2023 applies. We have covered the general duties in our DPDP Act checklist for websites and apps. The DPDP Rules, 2025 were notified on 14 November 2025 with an eighteen-month period for phased compliance, so build for these duties now rather than retrofitting them. For an attendance app, these points matter most:
- Basis for processing: the Act allows processing with consent, or for certain legitimate uses. One listed legitimate use is processing for the purposes of employment. Whether your attendance tracking falls under that, or should rest on consent, is a question for your lawyer.
- If you rely on consent, the Act says it must be free, specific, informed, unconditional and unambiguous, given by a clear affirmative action, and limited to the data necessary for the purpose. It must come with a notice of what is collected, why, how to exercise rights and how to complain to the Data Protection Board. Withdrawing consent must be comparable in ease to giving it.
- Erasure: erase personal data once the purpose is no longer served, unless a law requires you to keep it.
- Security and breaches: take reasonable security safeguards, and inform the Board and the affected people if there is a breach.
Whatever the legal basis, the phone still asks the employee to allow location, so explain the purpose clearly.
A privacy-first build checklist
- Read location only at the moment of punching in or out, never on a timer.
- Store what you need: the time, the site, inside or outside the boundary and the reading's accuracy.
- Stop all location access when the shift ends or the employee logs out.
- Write a one-page notice in plain language and show it inside the app before the permission prompt.
- Set a retention period for punch records and delete location details after it.
- Limit who can see location data, and log every change to attendance records.
- Give a fallback, such as manager-marked attendance, for phones that cannot get a reliable location.
Ready to plan yours? Talk to us about the sites, shifts and payroll rules you need to support.
Frequently asked questions
Can a geofencing attendance app track employees all day?
An app with background or Always location can read location well beyond working hours. For attendance you rarely need that, and continuous tracking is harder to justify to staff, to Google Play and under the DPDP Act. Check location only at punch time.
Does geofencing work without mobile data?
Not reliably on Android. Its documentation says the geofence service depends on network location, which needs a data connection, and that turning Wi-Fi off can stop alerts. Design for offline punches that sync later and are flagged for review.
What radius should we use?
Android recommends at least 100 to 150 metres for geofences. For tap-to-punch, compare the reported accuracy of the reading with your radius, and send borderline punches to a manager instead of rejecting them.
Sources
- Create and monitor geofences (Android Developers)
- Request background location (Android Developers)
- Request location permissions (Android Developers)
- Location in the background policy (Google Play Console Help)
- Permissions and APIs that access sensitive information, including the location button rule (Google Play Console Help)
- Requesting authorization to use location services (Apple Developer)
- CLAccuracyAuthorization (Apple Developer)
- Digital Personal Data Protection Act, 2023 (Gazette of India, copy hosted by TRAI)
- DPDP Rules, 2025 notified (Press Information Bureau explainer)
Want this built for your business?
UC Tech builds software, apps, websites and WhatsApp automation.