criticalmaps / criticalmaps-android

🤖 Critical Maps Android App
http://criticalmaps.net
Apache License 2.0
138 stars 27 forks source link

Message that criticalmaps is active & sharing location not showing anymore #346

Open c-schmitz opened 3 months ago

c-schmitz commented 3 months ago

Hello,

in the past I remember the app showed a permament message in the message center, that notified you that the app was actively sharing location. At some point this message vanished and so it happens often that I forget to quit the program/stop share my location.

Is this a bug or how do I get this message back?

I checked notification settings for the app and did not find anything.

dreua commented 3 months ago

Which Android version? It still works for me.

c-schmitz commented 3 months ago

I am using Android 14 on a OnePlus device.

FFMbyBicycle commented 2 months ago

I can reproduce this problem with Android 14 (LineageOS). Critical Maps ran for multiple hours in the background, I just noticed that the location symbol was active at the status bar. I'm using Critical Maps 2.9.0.

There are no notifications which could be enabled (app information): Screenshot_20240915-202346_Settings_1

cbalster commented 2 months ago

Thanks for bringing this up! I can confirm that this happens when installing the app for the first time on an Android 14 device. Prior to Android 14 you could run a background service with a notification without having the notification permission as you were only allowed to run a background service that has a notification to prevent exactly what we're seeing now. Starting with android 14, you do need that permission even for background services. Since we're still targeting an older android version it seems we're in a weird spot where we can run the service but are not allowed to post the notification. Note, that interestingly this does not happen when you had the app installed before updating the device to android 14 - probably since in this case we already have a notification channel registered. I will try to update the app as soon as possible to target the newest android version and also request the notification permission on newer devices. Unfortunately I'm a little short on time and this might take a week or two.