← Driver guideGPS / OwnTracks
<!-- OwnTracks setup guide for drivers. Rendered in the app at /dashboard/help/owntracks. -->

OwnTracks Setup for Drivers

OwnTracks replaces the in-browser GPS tracking. It keeps sending your location even when the phone is locked — no need to keep the browser open.

What you need from your manager:

ItemWhat it looks likeWhere the manager finds it
Usernamea long random string like cmollqynk000801mqek6qkt6rDrivers → select driver → OwnTracks button → Username (Device ID) field
Token (Password)another long random stringsame dialog → Token field

Ask your manager to copy both and send them to you via a secure channel. Don't type them by hand — copy/paste only.


1) Install OwnTracks


2) Pick the mode: Private HTTP

When OwnTracks opens for the first time it may ask you to choose a mode.

Why HTTP? MQTT requires running a separate broker server. We don't have one — our server speaks plain HTTP. Choose HTTP and ignore everything MQTT-related (Host, Port, Protocol, WebSockets, Client ID).


3) Configure every field — full reference

OwnTracks shows a long list of preferences. Most of them don't apply to our setup. Here's exactly what to do with each one.

Preferences → Connection

FieldWhat to enterNotes
ModeHTTPNot MQTT.
URLhttps://transfers.4guest.cz/api/driver/owntracksPaste exactly. No trailing slash.
UsernameThe Username from your managerA long random string. Copy/paste exactly.
PasswordThe Token from your managerAlso long and random. Copy/paste exactly.
Device IDLeave default (or set to your initials, e.g. pavel)Cosmetic only. Our server uses Username for identity.
Tracker IDYour initials, max 2 chars (e.g. PV)Shown on the dispatcher's map marker.
TLSOn (usually automatic for https:// URLs)The s in https requires TLS.
TLS CA certificateLeave emptyWe use the public Let's Encrypt cert; OwnTracks trusts it automatically.
TLS client certificateLeave emptyNot used.
HostHidden / N/A in HTTP modeOnly applies to MQTT. Skip.
PortHidden / N/A in HTTP modeOnly applies to MQTT. Skip.
WebSocketsHidden / N/A in HTTP modeOnly applies to MQTT. Skip.
Protocol / ProtoHidden / N/A in HTTP modeOnly applies to MQTT. Skip.
Client IDHidden / N/A in HTTP modeOnly applies to MQTT. Skip.
AuthenticationOnThis makes Username and Password fields take effect.
Cleanup sessionLeave defaultMQTT-only setting.

Preferences → Identification

FieldWhat to enter
UsernameSame as in Connection (some OwnTracks versions duplicate this)
PasswordSame as in Connection
Device IDSame as in Connection
Tracker IDSame as in Connection — 2 characters max, your initials

Preferences → Reporting (Android) / Settings → Monitoring (iOS)

SettingValueNotes
Monitoring (Android)MoveSends while moving, pauses when stationary. Best battery life.
Monitoring (iOS)SignificantUses the iOS "significant location change" API. Best battery life.
Locator intervalDefault (180 s)How often to ping when stationary. Server filters out duplicates anyway.
Move mode intervalDefault (30 s)How often to ping when moving.
Ping intervalDefault (30 min)A keep-alive ping. Don't lower this — drains battery.
Locator displacementDefault (500 m)Minimum movement before a new fix is sent.

Preferences → Advanced

SettingWhat to enter
Encryption / Secret encryption keyOff / blank — leave it disabled. We don't use payload encryption (the connection is already TLS).
Remote configurationOff
Remote commandsOff
Auto-restart on bootOn — so the app starts up after you reboot the phone
Notifications: ongoingOn — keeps the foreground service alive on Android
Pub QoS / Sub QoSDefault — MQTT-only, ignored for HTTP

Preferences → Privacy / Map / Notifications

These are display-only — they don't affect what's sent to our server. Configure them however you like.


4) Permissions checklist

OwnTracks needs specific permissions to keep tracking while the phone is locked.

Android

iOS

Without these permissions the app will stop sending your location as soon as the phone locks. If the dispatcher can't see you on the map, check these first.


5) Verify it's working

  1. Open OwnTracks. On the Status tab, the connection indicator should be green with a recent timestamp.
  2. Tap the upload-arrow icon (top right) to force-send your current location.
  3. Ask your manager to check the dispatcher map (/dashboard/map).
  4. Your marker should appear within about 1 minute.

If you tap the URL https://transfers.4guest.cz/api/driver/owntracks in a browser you'll see HTTP 405 Method Not Allowed — that's expected. The endpoint only accepts POST requests from OwnTracks, not GET requests from a browser. It does not mean the URL is broken.

If your marker doesn't appear:


6) Quick troubleshooting reference

SymptomLikely causeFix
401 Unauthorized in StatusWrong username/passwordManager regenerates token (Drivers → driver → OwnTracks → Regenerate); copy/paste both fields again
405 Method Not Allowed when visiting URL in browserNormal — endpoint is POST-onlyIgnore. Test from OwnTracks itself, not a browser.
Marker on map but not updatingPhone screen locked + battery optimisation enabledDisable battery optimisation (Android) or enable Always-Allow Location (iOS)
Marker never appearsPermission missing OR token wrongCheck permissions, then check Status tab in OwnTracks for the last error
Connection dropped after a whilePhone went to deep sleepEnsure foreground service notification is on (Android) / Background App Refresh on (iOS)

<sub>Anifilm 2026 — transfers.4guest.cz</sub>