Update location handler for Android

This commit is contained in:
Nguyen Ngo
2025-08-29 11:11:54 -04:00
parent 6a3c5430fc
commit e1d23faf44
5 changed files with 677 additions and 1 deletions
+9 -1
View File
@@ -511,7 +511,15 @@ function validateEmployeeId() {
// All location and language functions remain unchanged from original
function initializeLocation() {
console.log("📍 Initializing location services");
requestLocationData();
// Check if Android enhanced location handler is available
if (typeof AndroidLocationHandler !== 'undefined' && AndroidLocationHandler.isAndroidDevice()) {
console.log("📱 Using Android-enhanced location initialization");
AndroidLocationHandler.initializeAndroidLocation();
} else {
console.log("📍 Using standard location initialization");
requestLocationData();
}
}
function requestLocationData() {