Web push notification showing multiple times for multiple opened tabs
Web push notification showing multiple times for multiple opened tabs I've added web push notifications in my web app; in master layout (asp.net MVC) (using signalR). $(function () { // Declare a proxy to reference the hub. var notifications = $.connection.notificationHub; //debugger; // Create a function that the hub can call to broadcast messages. notifications.client.updateMessages = function () { getMeetingNotifications() }; // Start the connection. $.connection.hub.start().done(function () { // alert("connection started") getMeetingNotifications(); }).fail(function (e) { alert(e); }); }); If there are multiple tabs open for the same application. It pushes multiple notifications for the same activity. I resolved this by adding a tag field. function getMeetingNotifications() { $.ajax({ url: '@Url.Action("Index", "Home")', cache: false, type...