function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James McVicar 6James McVicar 6 

Live Agent notifications / push notifications

Hi,

We are new to Live Agent and our number one user complaint is that the chat notifications are too easy to miss.
The notification sound is pretty quiet (especially in a busy contact centre) and the on screen notification is not peristant.

My questions are:
Has anyone else had this issue and if so how did you address it?
Has anyone used / developed a desktop "push" notification to alert the agent to a new chat / response to a chat?

Thanks 
NagendraNagendra (Salesforce Developers) 
HI James,

Please check with below links from success community.

https://success.salesforce.com/ideaView?id=08730000000DjyIAAS

https://success.salesforce.com/ideaView?id=08730000000DrUtAAK

https://success.salesforce.com/ideaView?id=08730000000ZhC2AAK

Hope this helps.

Mark this as solved if it's resolved.

Regards,
Nagendra.
James McVicar 6James McVicar 6
Hi Nagendra,

Thanks for posting these, unforunatly none of the ideas look like they have enough votes to get actioned.

Anyone else hit this issue?
Jakub Kołodziej 7Jakub Kołodziej 7
You can use solution as below:

1) create a visualforce page (code bellow)
2) create a console component hidden with this visual force page
3) add the component to console. 
4) allow the visualforce page to profile
5) add to chrome notification enable for following domaine (because component are inside iframe)
[*.]force.com
[*.]salesforce.com
 
<apex:page >
    <apex:includeScript value="/support/console/45.0/integration.js"/>
    <script type="text/javascript">
    document.addEventListener('DOMContentLoaded', function() {
        if (!Notification) {
            alert('Desktop notifications not available in your browser. Contact Administrator');
            return;
        }
        
        if (Notification.permission !== "granted") {
            Notification.requestPermission();
        }
        sforce.console.chat.onChatRequested(function (result) {
            var notification = new Notification('Chat requested', {
                body: "CUSTOMER CHAT INCOMMING !"
            });
            
            notification.onclick = function() {
                window.open(window.location.href);
            };
        });
        sforce.console.addEventListener( sforce.console.ConsoleEvent.PRESENCE.WORK_ASSIGNED	, function (result) {
            var notification = new Notification('Chat requested2', {
                body: "CUSTOMER CHAT INCOMMING2 !"
            });
            
            notification.onclick = function() {
                window.open(window.location.href);
            };
        });
    });
    </script>
</apex:page>