Posted: 3 Jun 2019 10:00 EDT Last activity: 28 Aug 2020 16:29 EDT
Using the pyDesktopNotificationGadget for real time notifications
I am trying to utilize the out-of-the-box pyDesktopNotificationGadget to display real time notifications to users. Use case is that when an admin creates an alert, all recipients should be notified when they log in the next time or in the middle of their session if they are already in the system.
I have used the pxNotify activity to create a notification and assign the respective recipients and that is all working as expected, I can verify in the database. The issue I am running into is the notification icon (the bell with number of unread notifications in red box) does not automatically refresh to pull the new notifications. The portal needs to be refreshed manually and then and only then does the icon refresh/update and shows the correct unread count.
From what I expected this notification icon is expected to refresh in real time and no manual refresh should be needed. Is there anything specific I need to configure to achieve this desired result?
We just upgraded our system from 7.2 to 7.4 a few months ago. Although this is first time trying to set up notifications in general.
I launched the developer tools in Chrome before logging in like you asked and in the dev tools window I do not see any WebSocket connections being created. Below is a screenshot (not sure if there is a different place to check).
Are there any configurations needed on the server/network side to set the WebSockets up?
We first try to use WebSockets and if not implemented in the infrastructure being used, load balancer etc, then we down grade to use Long Polling. You may not be seeing any WebSockets in the debugger because it's not implemented in which case you will see a 501 response for the request to set it up. This will be followed by a request to establish Long Polling.
Did in your earlier version of PRPC disable notifications with DSS settings with "prconfig/server-push/enabled/default" set to false?
That particular DSS is set to 'true' in our system. And I just checked again and from developer tools I don't see any websocket connections but I also do not see any 501 status requests pointing to the failed request. Would this mean that websocket setup was never attempted?
We are facing the same problem currently. We can see the notifications getting added properly into DB and the updated notifications are reflecting in UI upon clicking on the bell icon but the notification count in Red color is not reflecting real-time.
To see the bell icon with count in Red, we need to log-off and log-in else it is not reflecting.
We are using OOTB section as is picked from pyPortalHeader section.
This post is over a year old and has no activity. I would request that you Ask your Question in a new post. That would allow our users to help you out and our Moderation Team to keep track to ensure you receive assistance.
Marissa | Senior Moderator | Pega Collaboration Center