gpslogger icon indicating copy to clipboard operation
gpslogger copied to clipboard

[Q] Is GpsLogger supposed to show on the lock screen?

Open PulsarFX opened this issue 1 year ago • 3 comments

I'm struggling to get GpsLogger to show a notification on the lock screen while it is running. I've turned every notification setting to 11 in the android settings, but it only shows a notification when the screen is unlocked.

Now I wonder: is this intentional? I'd like to see if it is running jus by glancing at the lock screen.

PulsarFX avatar Jul 15 '22 10:07 PulsarFX

Yes it was intentional I see it being hidden on the lockscreen on these lines, but can't remember why!

https://github.com/mendhak/gpslogger/blob/9b2dfc9b48b2b0bfa081ed27bb7eec7b7d59146c/gpslogger/src/main/java/com/mendhak/gpslogger/GpsLoggingService.java#L528
https://github.com/mendhak/gpslogger/blob/9b2dfc9b48b2b0bfa081ed27bb7eec7b7d59146c/gpslogger/src/main/java/com/mendhak/gpslogger/GpsLoggingService.java#L540

I think I was just trying to make the app unobtrusive and out of the way. I suppose there is no harm if you as the device owner want it to be visible, isn't it?

I could try adding an option to make this notification visible on the lock screen. There is a VISIBILITY_PUBLIC property... that should do it.

mendhak avatar Jul 17 '22 07:07 mendhak

Ah this makes things clear ;-) I think having it in a public channel is not a problem anymore, nor would it brake anything. Users can change the lockscreen appearance from the android notification settings on android versions where channels are supported.

PulsarFX avatar Jul 17 '22 08:07 PulsarFX

Added option to show notification on lock screen. Default is to hide it though. image

image

mendhak avatar Jul 17 '22 12:07 mendhak

OK it's on F-Droid now: https://f-droid.org/en/packages/com.mendhak.gpslogger/
Closing this issue

mendhak avatar Sep 12 '22 19:09 mendhak