locus-api icon indicating copy to clipboard operation
locus-api copied to clipboard

Start Track recording does not work when Maps 4 is not in forground in Androi 14

Open Falcosc opened this issue 10 months ago • 0 comments

I found a strange thing: some tasks work when Locus Maps 4.28.0 is in background, but others don't.

Lets do some examples

am broadcast -a com.asamm.locus.ACTION_TASK --es tasks '{"track_record":{"action":"start"}}' menion.android.locus
am broadcast -a locus.api.android.ACTION_TRACK_RECORD_START menion.android.locus

Both work if locus is open, but don't if locus is not on foreground. If Locus is not in foreground, it opens the battery optimization screen and locus is already allowed to run in the background. Happens even if Locus is run as service. Is there something missing on my Emulator setup?

Map Zoom however works always.

Image Image Image

Falcosc avatar Feb 09 '25 14:02 Falcosc