Closed yet-another-steve closed 1 month ago
@yet-another-steve Your issue might have been resolved (see https://github.com/osmandapp/OsmAnd/issues/20536) Could you try the Nightly version and see if it works for you? See https://download.osmand.net/latest-night-build/OsmAnd-default.apk
OsmAnd~ 4.9.0#3173m, released: 2024-09-12 "Notification disabled" option is really ignored when trip recording is enabled
Steps to reproduce:
Actual result:
https://github.com/user-attachments/assets/1d05528d-46b1-480a-b2be-c68b960cb2cf
Thank you for testing that Dmitry. I'll await the resolution of the option being ignored and try not to record tracks in the meantime.
@DmitryAlexei To my knowledge:: That OsmAnd setting "Notification" actually controls if the Android notification bar, when no recording is active, shows an entry which allows you to start a recording without having to go through the OsmAnd map screen.
That setting does nothing about the fact that during each ongoing recording there is a corresponding notification visible in Android's notification bar. I believe this is even an Android requirement, that every (so-called "Foreground") Service active on the device needs to be visible like this to the user, (and that may explain why it cannot even be suppressed via Android's settings).
But @yet-another-steve What strikes me in your report is that the screen seems to get activated under some conditions?! That's definitely not standard behavior, I have never experienced this. Have you set anything in OsmAnd's General settings > Screen control
? Also: When you check the recording notification (pull down and pan it to the left), does it really show as a "Silent" notification? Perhaps you have accidentally changed it to an "Alarm" notification?
@sonora you are completely right I've also consulted with the development team. I will summarize:
Isn't it documented properly?
@vshcherb Not really ... :wink: It rather verbous, but misses the point :wink:
SOLVED. In the Android settings ->Notifications and status bar -> Lock screen notifications I removed Osmand from the app list. It now doesn't show the recording notification on the lock screen and thus doesn't open the screen for presses. This doesn't affect the track recording. It could be ideal if this setting was removed during installation.
Notifications still appear in the normal notification area.
Osmand was is also in the Privacy -> Special Permissions -> Turn on screen list. I have left this but those wanting the notification on the lock screen without it opening the screen may want to try removing Osmand from this list first.
Osmand is not in the Privacy -> Special Permissions -> Alarms and reminders app list
Description
I have disabled the screen notification when recording a trip. This is because the notification opens the lock screen and when in my pocket this leads to pocket presses which on one occasion called the emergency services!! and on others has lead to photos being taken. Only Osmand does this with notifications. Changing Android settings for notifications does not prevent this from occurring.
I disabled trip recording notifications but to no effect; they still appear regularly and allow the 'phone to do pocket presses.
Steps to reproduce
Actual result
The notification will pop up and switch the screen on. (Screen presses can now take photos and call emergency services)
Expected result
Notifications should not pop up when the setting is set to disabled in the trip recording settings for the profile.
Your Environment (required)