gdelataillade / alarm

A Flutter plugin to easily manage alarms on iOS and Android
https://pub.dev/packages/alarm
MIT License
132 stars 86 forks source link

Hide Volume Hud when ringing in sielent mode #220

Closed Sofstica-Noor-Fatima closed 4 months ago

Sofstica-Noor-Fatima commented 4 months ago

is it possible to hide the volume controller that is displaying for a while only when the mobile is in silent mode?

gdelataillade commented 4 months ago

Hi @Sofstica-Noor-Fatima

My initial idea was to add a boolean parameter showVolumeIndicator but unfortunately I realized that it is mandatory to always show the indicator, for user experience issues.

Sofstica-Noor-Fatima commented 4 months ago

can u please share the source code that how can I remove it from setVolumeMethod inside swift class

gdelataillade commented 4 months ago

The code where I change the system volume is in the SwiftAlarmPlugin.setVolume but I don't know how to hide the volume indicator. I tried many things but without success...

Please let me know if you find a way to do it !

gdelataillade commented 4 months ago

During my research I found these plugin: volume_controller which has the parameter showSystemUI. But when I look in his source code and try to do the same it doesn't work.