SimpleMobileTools / Simple-Clock

Combination of a beautiful clock with widget, alarm, stopwatch & timer, no ads
https://www.simplemobiletools.com
GNU General Public License v3.0
588 stars 237 forks source link

Alarm icon not being shown at the top status bar #464

Closed tibbi closed 1 year ago

tibbi commented 1 year ago

On Android 13+ (not sure about exact version) if an alarm is scheduled properly, it should show a top status bar icon. It is not shown in our cases, thus making it less reliable.

rawlin commented 1 year ago

@tibbi Setting the alarm icon in the status bar is not part of the Android SDK, only firmware apps are able to do it by directly interfacing with their proprietary roms and firmwares.

Links to Stackoverflow comments:

android - Lollipop API for controlling the Alarm icon in status bar - Stack Overflow

android - Controlling the Alarm icon in status bar - Stack Overflow

AlarmManager with alarm icon (google.com)

Android, the alarm icon on the right side of notification area? - Stack Overflow

I tried a couple of these out, but all of them seem to be deprecated and not working

I also installed the clock app by Google on my Redmi phone and setting the alarm on that does not show the alarm icon in the status bar, but setting it through the Redmi clock app shows the icon

rawlin commented 1 year ago

Another way around this would be to show a constant notification with a clock icon

tibbi commented 1 year ago

ok, lets keep it then