About LocHook
LocHook is a utility app for iOS and Android. Configure a REST endpoint URL and LocHook will POST your device's location — including coordinates, altitude, speed, city, and country — whenever a significant location change is detected. Add custom key-value fields to enrich the payload, and use the retry queue to ensure no transmissions are lost.
Tap the pencil icon (✎) next to the Endpoint card on the home screen. Enter a URL beginning with http:// or https:// and tap Save.
LocHook will send a POST request with a JSON body containing your location data to this URL whenever a significant location change is detected.
Use the Send Now button to trigger an immediate transmission and confirm your endpoint is reachable.
For background tracking, check the following:
- Location permission is set to Always (not "While Using")
- The endpoint URL is correct and accessible from your network
- The device has moved a significant distance (typically 500m+) since the last event
Significant location change events are triggered by the operating system and are not continuous — they fire when the device detects meaningful movement.
iOS: Go to Settings → Privacy & Security → Location Services → LocHook and select Always. Also ensure Background App Refresh is enabled for LocHook.
Android: Go to Settings → Apps → LocHook → Permissions → Location and select Allow all the time.
Without "Always On" permission, LocHook cannot detect location changes while the app is in the background.
When a transmission fails (e.g. your endpoint is temporarily unreachable or the device is offline), the payload is added to a local retry queue.
The queue is automatically flushed when the app foregrounds or when the next location event fires. Failed items are retried until they succeed or are displaced by newer entries (queue cap: 1000 items).
The number of queued transmissions is shown on the home screen when non-zero.
LocHook sends a JSON POST body with the following fields:
timestamp— ISO 8601 date stringlatitude,longitudealtitude_m— metresspeed_mps— metres per secondaccuracy_m— horizontal accuracy in metrescity,state,country
Any custom fields you define in the app are appended to this payload.
Tap the + button in the Custom Fields card on the home screen. Enter a key and a value. The key must not conflict with any reserved field names.
Custom fields are static — the same key-value pair is included in every payload. They are useful for identifying the device or user, e.g. device_id: my-phone.
iOS: Go to Settings → [Your Name] → Subscriptions to manage or cancel your LocHook subscription.
Android: Open the Google Play Store → Account → Payments & subscriptions → Subscriptions.
If you've previously subscribed and need to restore access, use the Restore purchases link inside the app.
Contact Support
Can't find what you're looking for?
Send us an email and we'll get back to you.