Popular ask from customers is when we will productize desktop notification (typically to play sound) on the web client, upon new outbound message. This is something we have on our product roadmap, and planning to leverage browser's notification API.
We recently update the corresponding Idea with suggested simple customization > https://genesyscloud.ideas.aha.io/ideas/DIG-I-147
Pasting here for visibility, and this can be further optimize based on Messenger's open/closed status and browser-tab visibility/focus. Would also suggest to use a base64 encoded audio (as in this example, too long to paste). You can try this in browser console.
Genesys("subscribe", "MessagingService.messagesReceived", function(e) {
var sound = new Audio("https://cdn.freesound.org/previews/374/374936_2475994-lq.mp3");
// OldTrombone - G2 (Trombone_Short_G2_v1_4.wav) by sgossner -- https://freesound.org/s/374936/ -- License: Creative Commons 0
if (e.data) {
const respDataObject = e.data || {};
if (respDataObject.messages[0].direction == "Outbound")
{
sound.play();
}
}
});
#WebMessaging------------------------------
Angelo Cicchitto
Genesys - Employees
------------------------------