Location Tracker app template
GPS coordinates, accuracy and a walking distance tracker.
This is the template running live. Phone features such as the camera, vibration and notifications work in the app you build.
Phone features this template uses
These come from the FreeApp JavaScript bridge that every app built with Free HTML to APK includes. In a normal browser the template still runs, and the calls simply do nothing.
Keep the screen on.
Copy to clipboard.
Open in the external browser / app.
Short native toast.
One-shot buzz (default 50 ms) or an [off, on, off, onβ¦] pattern.
How the template calls them
async function track() {
if (window.FreeApp && !(await FreeApp.requestPermission('location'))) return;
if (window.FreeApp) FreeApp.keepAwake(true);
navigator.geolocation.watchPosition(p => update(p.coords), null, { enableHighAccuracy: true });
}
openMaps.onclick = () => window.FreeApp && FreeApp.open('https://www.google.com/maps/search/?api=1&query=' + lat + ',' + lng);
Make it yours with AI
Copy this prompt into ChatGPT, Gemini or Claude, change the idea to yours, and paste the answer back into the editor. It already explains the app shell and the phone features to the AI.
Show the AI prompt
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.
The app: Location Tracker β a GPS tracker with coordinates, accuracy and a walking-distance tracker. GPS coordinates, accuracy and a walking distance tracker.
Requirements:
- Mobile-first, touch-friendly UI (min 44px tap targets), works in portrait, supports light and dark mode.
- Use <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> and pad for env(safe-area-inset-*).
- Must work fully offline: no CDN or external scripts, fonts or images; persist data in localStorage.
The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.requestPermission(name: 'camera' | 'microphone' | 'location' | 'notifications'): Promise<boolean>
- FreeApp.keepAwake(on: boolean): void β keep the screen on
- FreeApp.copy(text: string): void β copy to clipboard
- FreeApp.open(url: string): void β open in the external browser / app
- FreeApp.toast(message: string): void β short native toast
- FreeApp.vibrate(ms?: number | number[]): void β one-shot buzz (default 50 ms) or an [off, on, off, onβ¦] pattern
Rules for the bridge:
- Always guard calls with `window.FreeApp &&` (or `if (window.FreeApp) { β¦ }`) and provide a browser fallback so the page also works in a normal browser.
- The bridge may be injected after your script runs: do native setup inside `window.addEventListener('freeappready', β¦)` and also run it immediately if window.FreeApp already exists.
- Do not use alert/confirm for normal feedback; prefer FreeApp.toast when available.
Return the complete index.html in one code block.
My idea: [DESCRIBE YOUR APP IDEA HERE]Turn it into an Android app
- Tap Edit & build online. The template opens in the online editor.
- Change the text, colors and code, then pick an app name, an icon and a package name.
- Build. You get a signed APK to install and an AAB for Google Play, free, with no account and no watermark.
More Device templates
Flashlight
Big power button torch with strobe and SOS modes.
Vibration Lab
Play and compose custom haptic patterns.
Device Info
Phone model, screen, OS, memory and app details.
Battery Monitor
Battery level, charging state and a live history chart.
Network Status
Online/offline state, connection type and change log.
QR & Barcode Scanner
Native full-screen scanner with torch, format filters, copy/open/share and scan history.