๐Ÿ“

GeoAttend

Pinpoint Geofence Attendance Tool
Acquiring GPS...
Online
๐Ÿ“ก Geofence Radar
CHECKING...
Target Location
Loading...
Allowed Radius
--
Your Distance from Target
--
โณ

Acquiring GPS Position...

Please wait while the system checks your distance to the pinpoint location.

Allow browser location access if prompted.
โœ๏ธ Mark Your Attendance
๐Ÿ”’ Automated Security Snapshot:
GPS Coords: --, -- Accuracy: --
๐Ÿ“ธ Geo-Tagged Photo Capture
Capture field or attendance photos with your exact GPS location, Name, and Timestamp automatically stamped onto the photo and saved to your device.
GPS Active
LIVE
๐Ÿ“ท

Live Camera

Click "Start Live Camera" to view your live camera, or tap "Open Native Camera" to snap using your phone's camera app.

โ„น๏ธ Captured photos will automatically download to your device with GPS coordinates, Name, and Timestamp watermarked onto the image.
๐Ÿ–ผ๏ธ Saved Geo-Photos Gallery
Stored securely offline on this device.
0 photos
๐Ÿ“ Configure Pinpoint Location & Geofence

Set the exact pinpoint coordinates for your office, classroom, or venue. Users can only take attendance when physically inside the specified radius.

Stand at the target location and click this button to automatically grab your exact GPS coordinates.
Standard recommendation: 30m - 50m for an office room or hall.
๐Ÿงช GPS Testing & Simulation Mode

Allows you to test both Inside Geofence and Outside Geofence states directly from your computer without walking outside!

๐Ÿ“ฑ Device Staff Registration

To prevent proxy attendance, each device is locked to one registered staff member.

Current Device Registration:
None (Unregistered)
Resetting device registration will prompt the next user who opens this phone to register their name.
โ˜๏ธ Cloudflare Live OTA Updates
LIVE SYNC READY

Connect your app to Cloudflare Pages. Whenever you update code on your PC and deploy, every phone automatically receives the update instantly without reinstalling the APK!

Default: https://geoattend.pages.dev. If offline, the app seamlessly uses local phone assets.
๐Ÿ“Š Google Sheets Integration
Paste the deployed Web App URL from your Google Sheet here.
๐Ÿš€ 3-Minute Google Sheets Setup Guide
  1. Create a new Google Sheet
    Go to sheets.new and name it Attendance Register.
  2. Open the Apps Script Editor
    In your Google Sheet menu bar, click Extensions โž” Apps Script.
  3. Paste the Script Code
    Delete any default code in Code.gs and paste the code below:
function doGet(e) {
  if (e && e.parameter && (e.parameter.name || e.parameter.userId || e.parameter.action === 'record_attendance' || e.parameter.action === 'test_connection')) {
    return handleRecord(e.parameter);
  }
  return ContentService.createTextOutput(JSON.stringify({
    status: "active",
    app: "GeoAttend Attendance Endpoint",
    message: "Google Apps Script endpoint is online and ready to receive attendance records."
  })).setMimeType(ContentService.MimeType.JSON);
}

function doPost(e) {
  var data = {};
  if (e && e.postData && e.postData.contents) {
    try {
      data = JSON.parse(e.postData.contents);
    } catch (err) {
      data = e.parameter || {};
    }
  } else if (e && e.parameter) {
    data = e.parameter;
  }
  return handleRecord(data);
}

function handleRecord(data) {
  try {
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    if (!ss) {
      throw new Error("Active spreadsheet not found. Ensure this script is created via Extensions -> Apps Script inside your Google Sheet.");
    }
    
    var sheet = ss.getActiveSheet();
    
    // Deduplicate rapid transmissions (within 30 seconds)
    var cache = CacheService.getScriptCache();
    var recordId = data.id || (data.userId + "_" + (data.timestamp || ""));
    if (recordId && cache.get(recordId)) {
      return ContentService.createTextOutput(JSON.stringify({
        result: "success",
        message: "Duplicate entry safely debounced."
      })).setMimeType(ContentService.MimeType.JSON);
    }
    if (recordId) {
      cache.put(recordId, "logged", 30);
    }

    // Initialize header row on first submission
    if (sheet.getLastRow() === 0) {
      sheet.appendRow([
        "Timestamp",
        "Full Name",
        "User ID",
        "Department",
        "Action Type",
        "Distance (m)",
        "Allowed Radius (m)",
        "Status",
        "Latitude",
        "Longitude",
        "GPS Accuracy (m)",
        "Remarks",
        "Device Info"
      ]);
      
      var headerRange = sheet.getRange(1, 1, 1, 13);
      headerRange.setFontWeight("bold");
      headerRange.setBackground("#1E3A8A"); // Navy blue
      headerRange.setFontColor("#FFFFFF");
      headerRange.setHorizontalAlignment("center");
      sheet.setFrozenRows(1);
      
      for (var col = 1; col <= 13; col++) {
        sheet.autoResizeColumn(col);
      }
    }
    
    var formattedTime = data.timestamp || Utilities.formatDate(new Date(), Session.getScriptTimeZone(), "yyyy-MM-dd HH:mm:ss");
    
    sheet.appendRow([
      formattedTime,
      data.name || "",
      data.userId || "",
      data.department || "General",
      data.actionType || "Check In",
      data.distance !== undefined ? data.distance : "",
      data.allowedRadius || "",
      data.status || "VERIFIED",
      data.latitude || "",
      data.longitude || "",
      data.accuracy || "",
      data.notes || "",
      data.userAgent || ""
    ]);
    
    var newRow = sheet.getLastRow();
    sheet.getRange(newRow, 1, 1, 13).setVerticalAlignment("middle");
    
    return ContentService.createTextOutput(JSON.stringify({
      result: "success",
      row: newRow,
      message: "Attendance recorded successfully"
    })).setMimeType(ContentService.MimeType.JSON);
    
  } catch (err) {
    return ContentService.createTextOutput(JSON.stringify({
      result: "error",
      message: err.toString()
    })).setMimeType(ContentService.MimeType.JSON);
  }
}
  1. Deploy as Web App
    Click Deploy โž” New Deployment.
    Click the gear icon โš™๏ธ โž” Select Web app.
    Set Execute as: "Me".
    Set Who has access: "Anyone" (crucial so submissions work without login prompts).
    Click Deploy, grant permissions, and copy the Web App URL into the box above!
๐Ÿ“‹ Attendance History & Local Database
All attendance entries are stored securely offline on this device and synced to Google Sheets.
0 records
Timestamp Name ID / Roll Department Action Distance Cloud Sync
๐Ÿ“ฒ Connect with Your Phone

To mark attendance from any smartphone (Android or iPhone), connect your phone to the same Wi-Fi network and scan the QR code below:

Direct Link:
http://localhost:8080
๐Ÿ“ฅ Download GeoAttend.apk Directly
๐Ÿ“ฑ Opening & Installing as a Native Android App
Method 1: Direct 1-Click App Installation (WebAPK)

When you open the link in Chrome, Edge, or Samsung Internet on Android:

  1. Tap the "๐Ÿ“ฒ Install Mobile App" button at the top header, or tap browser menu (โ‹ฎ) โž” "Install app" / "Add to Home Screen".
  2. Android automatically creates and installs an official native WebAPK on your phone with the GeoAttend app icon.
  3. The app opens full-screen (without browser bars), works completely offline, and retains full GPS & camera permissions!
Method 2: Standalone Android Studio Project (Generate Custom APK)

We have included a complete Android WebView project in the android-project/ folder:

  • Open the android-project folder in Android Studio.
  • Click Build โž” Build Bundle(s) / APK(s) โž” Build APK(s).
  • Android Studio will generate your standalone app-debug.apk ready to install on any Android phone!
๐Ÿ’ก Cloud 1-Click APK Generator (No Android Studio required):

You can also use Microsoft's official free tool PWABuilder.com: enter your URL or upload the project to generate a signed Android APK in under 1 minute!