Announcement

Collapse
No announcement yet.

No notification sounds

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • No notification sounds

    Hello,
    I think notifications sound doesn't work properly, here is what I get from console Uncaught (in promise) DOMException This is from espo official demo page also same with my installation.

  • #2
    Hi,

    It's Chrome new behavior. It blocks sounds (which is a great idea). You can enable it in chrome settings.

    Comment


    • #3
      yuri I am using CRM in mobile browser is there any way to have a notification sound when a Lead assigned?

      Comment


      • #4
        I'm currently on the latest version 8.3.6 and I don't have notification sound even after sound permission was granted. I deep dive into views/notification/badge and found out that isFirstCheck that passed to popupNotificationView is always true, which causes below code never execute playSound function.
        PHP Code:
        onShow() {
            if (!
        this.options.isFirstCheck) {
                
        this.playSound();
            }
        }
        ​ 
        So I have removed condition check and also override playSound function as it caused error AbortError: The play() request was interrupted because the media was removed from the document.

        PHP Code:
        playSound() {
            if (
        this.notificationSoundsDisabled) {
                return;
            }
            
        let audio = new Audio(this.soundPath '.mp3');
            
        audio.volume 0.3;
            
        audio.play();
        }
        ​ 
        And finally get sound playing!

        Comment


        • ChrisSka83
          ChrisSka83 commented
          Editing a comment
          Hy and thank you for dealing with this topic.
          But where exactly do you change this?
          Maybe more users want to change it.

      • #5
        I'm developing custom popup notification. Just create custom view for it, extend from views/popup-notification and redefine corresponding functions

        Comment

        Working...
        X