[BUG] [IMPORTANT] Location doesn't work with Fmd-server but works via chat.

  • [V ] I have searched for duplicates (including closed issues)
  • [V ] I have read the wiki

Please solve this so the app will be perfect.

Bug Summary

Location doesn't work with Fmd-server but works via chat.

Steps to reproduce

  1. I installed the app and configured it with self-hosted instance. I use custom command not fmd but abc
  2. The app has every permission except Microphone and read all notifications. It also has ALLOW_SECURE_SETTINGS given by adb.
  3. I go on my website, I login, the login works (with a newly fresh account).
  4. I see the "last position" and I can see the previous positions, for a total of 4 positions: it stopped working after, even if I configured the app to auto update the position every X time
  5. I try the various features. All the features work (ringing, taking a picture and opening the gallery after few seconds, locking remotely). The battery percentage wasn't correctly shown on the website even if I enabled read all notifications permission. So I disabled it for privacy.
  6. When I try to use any position feature, it doesn't work. I try "GPS" a few times, then I try "Last". Nothing gets updated on the website. I tried Cellular but this wouldn't work anyway because OpenCellID returns "Cell not found" in their JSON (probably they don't have cell towers of my area in their database).
  7. However, every command is received by the phone and showed in the notifications. The position get auto-enabled by your app. Unfortunately (another.. related bug) the position stays on even if before it wasn't on (you should do that if the position wasn't on, you put it off automatically after getting the location, otherwise you leave it on.. that should be simple just a loop that tries 3 times every X second to put the location off until it is actually off).
  8. Even if the phone receives the commands (I also setupped unifiedpush, obviously, or it wouldn't receive them), there is no update on the website.
  9. IMPORTANT NOTE: if I send a message through sms or through a messages app + my "unknown contacts" PIN thing, I receive the position with coordinates and maps link in both cases. The issue seems to be related only to the FMDServer: either the server doesn't receive the position correctly and store it correctly, or the UI on website doesn't work correctly. I see no errors in Console or Network tabs of the browser, anyway.

Actual behaviour

see steps to reproduce

Expected behaviour

see steps to reproduce

Metadata

  • FMD Android version: 0.11.0

  • FMD Server version: 0.10.0

  • Android version: 15

  • ROM name: GrapheneOS last version

  • Clean install: no

  • If no: upgrade from version: the previous one

Logs

LOGS FROM "Fmd app -> Information -> View logs" ON GRAPHENEOS

FIRST TRY
04-04 XX:33:00.436  4932  4932 I PushReceiver: Received push message
04-04 XX:33:00.551  4932  4932 D ServerCommandDownloadService: Downloading remote command as jobId=12305
04-04 XX:33:06.918  4932  4958 D Volley  : [13] NetworkUtility.logSlowRequests: HTTP response for request=<[ ] https://abc.domain.com/api/v1/command 0x388c9886 NORMAL 17> [lifetime=6254], [size=599], [rc=200], [retryCount=0]
04-04 XX:33:06.945  4932  4932 I ServerCommandDownloadService: Received remote command 'locate gps'
04-04 XX:33:06.985  4932  4932 D CommandHandler: Handling command 'abc locate gps' from source 'FMD Server'
04-04 XX:33:07.025  4932  4932 D CommandHandler: Executing command: locate
04-04 XX:33:07.089  4932  4932 D SecureSettings: Turned GPS on/off using SecureSettings: true
04-04 XX:33:07.125  4932  4932 D LocationAutoOnOffHandler: Adding job=1743777187084
04-04 XX:33:07.666  4932  4967 D GpsLocationProvider: Requesting location update from GPS


SECOND TRY
04-04 XX:34:13.561  4932  4932 I PushReceiver: Received push message
04-04 XX:34:13.610  4932  4932 D ServerCommandDownloadService: Downloading remote command as jobId=18940
04-04 XX:34:13.995  4932  4932 I ServerCommandDownloadService: Received remote command 'locate gps'
04-04 XX:34:14.026  4932  4932 D CommandHandler: Handling command 'abc locate gps' from source 'FMD Server'
04-04 XX:34:14.060  4932  4932 D CommandHandler: Executing command: locate
04-04 XX:34:14.105  4932  4932 D LocationAutoOnOffHandler: Adding job=1743777254104
04-04 XX:34:14.135  4932  4967 D GpsLocationProvider: Requesting location update from GPS

I'm going to add also the docker logs P.S. there are no logs in docker regarding this. Just aof few lines start up and user related logs.

Screenshots

not useful

Other information

Edited by davidsmith91