HRMS Face Attendance + Offline Sync 1) Keep this HRMS web application as the server application. 2) In phpMyAdmin select database: hrms. 3) If the existing field tracker tables are not installed, run: sql/area_manager_tracking_admin_final.sql 4) Run this once: sql/face_attendance_offline_sync.sql 5) Mobile API base for the supplied APK project: http://192.168.0.163/hrms_login/api/face_attendance/ 6) The mobile app uses the existing admin_users username/password. It also uses the existing branch and employee records; it does not create a second employee roster. 7) The mobile app caches employees and face templates after a successful login. 8) If the web server goes down after the cache exists, attendance and face updates are stored locally and retried automatically every 30 seconds while the app is running. 9) Field Tracker start/location/end events are also queued locally and retried. 10) When the server becomes reachable again, the app syncs using unique event IDs so a retry does not create duplicate attendance events. Important: the first login and initial face cache require the HRMS server to be reachable. Background GPS after the Android app is force-killed is not enabled; field GPS collection runs while the Field Tracker screen/app is active.