The app doesn't close properly since the 3.40.0

Stefano shared this problem 2 months ago
Solved

Even after exiting (pressing exit in main menu) I can hear the sound alarm that I set in the event of a GPS absence. I need to close the app from phone resource management.

Comments (17)

photo
1

Hi,

when you double tap back button and close the app and then you start Locus Map again - what happens? Does it show the latest used Locus screen or does Locus start with the initialization window? If the first, it was minimized. If the second, it was closed.

photo
1

In actual version 3.41.0, when you double tap back button to close the app, the GPS symbol stays visible at the top of the Smartphone screen. Even waiting some time doesn't help.

Moreover, if you start Locus Map again then the latest used Locus screen is shown immediately - no initialization has to be done.

This clearly indicates that Locus Map will not be closed when double tapping the back button. Not sure when this started but in 3.41.0 it's present.

photo
1

Hi Thomas, what phone and Android version do you use? We can't simulate it...

photo
1

Samsung A3 (2016), Android 7.0

photo
1

Hi Thomas, thank you for the additional info. We'll see to it. Best regards, Michal

photo
2

Fixed for me after updating to 3.42.0.

photo
photo
1

Hi Michal,

Initialization is shortly visible, so Locus is closed according to your definition. However, it is still visible amoung the active apps - see screenshot with closed Locus. From my point of view the app should not be listed there. If all closed apps would still be visible amoung the active apps it would be a complete mess. Btw it makes no difference if Locus is closed via back button or via menu item.

Best wishes,

GuRa

photo
1

Hi,

the list of "active" apps, in fact, doesn't show apps that are actually active - they are just last used apps and the list serves for quicker switching between them, sort of multitasking. But in reality, if Locus is double-back-buttoned, it is not active, don't worry - you can check it in your battery consumption history

photo
1

c4d12277f1d5529efc643841b3bd357c


But this is with a TaskManager (OS Monitor).

Locus stays running in background, see the Screenshot, using memory and CPU. I had quit with two Back-Taps.

photo
photo
1

Héhé, maybe you're right ! I already found for some period (Beta ?) that in the middle of the night my (charging) phone triggered the selected gps on/off sound alert. I did not find a cure (My mistake ? Maybe was not properly closed ?) Actually at night I do mute media sound. (Android 9)

photo
1

I'm using Android 9 too (9.1.0 on Huawei P30).

photo
1

I confirm the same problem today. Samsung A3, Android 8.

photo
1

EDIT: It doesn't always happen. Of the eight uses only once. It was after using navigation, it automatically ended after reaching the destination. Locus terminated by the Back button. After a few minutes I heard a Locus GPS loss signal at the supermarket.

photo
1

With my phone it happens every time.

photo
photo
1

May I ask Android 9 user(s).

Is Locus audio routed over the notification channel instead of the media channel still available ?

(Ex...TTS or Voices in Navigation).

photo
1

Media channel. I've just tried both options, the problem is the same.

photo
1

Ok so Media channel Only.

My newly installed Locus Pro (On the A9 phone ) did not generate TTS nor voices audio.

After install (Locus Pro) was on the "Notification audio channel", changed to Media channel = ok.

Tablet A 5.1 = Both media and notification audio channels ok.

photo
photo
1

Not exactly the same issue, but maybe also related:


Since about half or even 1 year: if I "close" locus by just removing it from the Android task-manager (i.e. not closing properly via pressing exit in main menu), Android's GPS-icon stays active and so probably needlessly consuming battery power. The GPS has just been used by Locus, no other app is using GPS.


I know, I should close Locus properly all the time. But in the past, even if removing Locus quickly from the taskmanager: Android-GPS got switched off the same moment.

photo
1

I have observed on very last version: the gps icon in Android status bar, on the very top, does not always disappear after exit Locus. I start Locus as a service and end it via hamburger menu - exit.

photo
1

confirm behavior,

for me after "auto-screen off > screen on" the GPS-icon is gone

photo
photo
1

Thank you guys for your bug report. The whole closing mechanism is too sensitive on precise timing and because of this is very easy to break it. I've updated "Android lifecycle" library and a small delay in one notification caused this mess.

An issue in Locus Map found and a new fixed version is in preparation.

@sonny, no matter how you close the app, it should work correctly. Give the next version a try.

Anyway, I'll need to completely rewrite this "app is closing" to make it more robust and reliable.

photo
1

Hi Menion, there's still a little problem if closing Locus by swiping the app out of Android's Taskmanager. In the case if Guiding or tracking has been active, Android's GPS icon in the info bar stays active. I think if swiping out the app, each function (even guiding and tracking) should stop and so closing GPS consumption as well

photo
1

Hi, if you have Locus Map with active track recording and you swipe it out, recording is also still running?

It should. And then GPS is needed. Which I think is correct behavior. The app should not be closed when has active service without direct confirmation from the user. But most probably, this behavior will be different on different Android versions and mainly different device manufacturers.

photo
photo
1

Maybe if tracking is active it's a edge case what should be done if swiping the app out. Follow the user's wish to totally exit Locus including Tracking or not. I think asking the user with a dialog (like it is done if I finish locus by pressing androids' "back" button twice) is not possible if swiping our, right?


But please exit GPS-reception and Locus if "just" Guiding/Navigation is active. I'm often guiding to Waypoints and if not needing Locus any more I quikly swipe it out of the task manager. This behaviour of closing Locus+GPS with guidng (and I also think with tracking) active worked during the last years. Just since some months ago I sometimes see the active GPS icon although no app is within Android's task manager

photo
1

sonny sorry, but it is not easily possible.

To make some background tasks (like track recording or navigation with the screen turned off) possible and working reliably, app has to run so-called "foreground service". This causes a) permanently visible notification in the system status bar and also b) inability to swipe the app off as you did.

You most probably not used "Locus as a service" so your method worked before, but does not work anymore since a few months when I changed navigation stability a little bit.

Because your method requires tap + swipe, I really suggest starting using back + close combination, which takes the same amount of time and allows Locus Map to correctly handle "close" request and really terminate all necessary tasks and services.

photo
photo
1

It was fixed but in 3.41 it is again buggy.

Doesn't close properly when exit the app.

I need to kill Locus in a task manager.

photo
1

Hi franc,

what problem are you trying to solve? You close the app by double back press and what happens? GPS is still running? Does app suck your device battery? Or you just still see Locus Map in the list of recently used apps (which is correct)?

Menion

photo
1

Double tap and Locus seems to close.

But after a while i hear the beep and buzz of gps found (or absence?) of Locus and in the task manager i can still see Locus is running.

I need to kill it there then.

I had exactly this before in some previous Locus version and after an update it was fixed, i guess. Now it's again.

photo
1

And I don't mean that I find it in the recently used apps, I find Locus in my Task Manager App (from bytehamster.com), where only running apps are listed.

And the beep is the most irritating thing, means that Locus found GPS or so, means that it still does something.

And when I start Locus then, it is not initializing (means still running). But it shows shortly the initializing screen, but much too short to really do it.

photo
photo
1

For reference, same problem reported here: https://help.locusmap.eu/topic/exit-with-double-press-back-button#comment-77846

Samsung A3 (2016), Android 7.0

photo
1

3.42.0: still unfixed :(

photo
1

You are the only one known, with this problem. Only what I think we may do is create and share with me your backup, so I may restore exactly what you have set in the app with hope, it will have the same problem. Anyway, I still think there will be something different that causes this ... probably some add-on, some external app that calls Locus Map for some reason, maybe some own creation? :)

photo
1

Could it be the automatic backup?

I have set that to weekly backup (all 7 days).


No, nothing calls Locus, nor any self made app, and when i kill Locus in my task manager, Locus stays closed.

Locus is just not fully closed with double tap back in Locus.

photo
1

What caused the bug before, when I was not "the only one known" with this problem?

Could the fix be so special that it didnt effect all devices?

At the moment I still have Locus running in the background, since more than half an hour and just it did again do the GPS signal (lost and refound). I killed it in my Task Manager now.

photo
1

Hello Franc, I've moved your last two posts to the separate topic, so we may continue there and not disturb other users here in the already "solved" topic.

photo
1

It works now. I made a simple Locus backup and reset Locus data in Android app settings (or titanium) after i restored the backup and now the issue has gone :)

photo
photo
1

Fixed for me after updating to 3.42.0.

photo
1

Hi,

I have a similar issue since about 2 months (I usually get the updates soon after release in play store). This only appears on my "daily phone", so it's not a big issue for me as I mainly use locus on other devices (without issue). But still would like to fix it because i test stuff on this device sometimes.

- Motorala one

- Android 9

- Locus runs as service, also with option to override screen lock etc

- I don't have the exit option from the main menu!

- If I try to "double back" exit, the screen turns black and the phone is locked. After unlocking locus is still here where I left it.

- Sweeping Locus out in the android running app list doesn't work (it disappear from the list but both locus and gps notification icons are there. Indeed if I click the locus icon the app appears immediatly where i left it)

- I can't even kill it from the running process/services page (the stop app/service button is greyed out)

photo
1

I think you have maybe a system (not Locus) setting to turn off display with double back, could that be? I remember vaguely that such things exist in Android Settings, at least I remember that with a tap on the notification bar.

If you have such a Display-Off-Setting with double-back, than Locus cannot override it and stays running.

There is no exit option in the main menu (at least not on my Locus). Have never seen such exit option in Locus, though.

photo