alexcrack / angular-ui-notification

Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
MIT License
536 stars 169 forks source link

Notificiation appears when comeback to the browser #122

Open johnico opened 7 years ago

johnico commented 7 years ago

HI I have timer to get data from server in evrey second if the request is fail i generate error notif and when one of the request is ok i use . "clearAll()" . functon to remove the error message.

the problem is when the notification was in the background and im not on the page , and the connection lost and and comeback and I m still on othe page when I come back to the page I got the error message for second and then clear all again . .. event the connection is good for a while.

how can I make sure that will not happen

in error I call to . Notification.error and change the flag to true and in success i use clearAll . and change the flag .

1Jesper1 commented 5 years ago

I have also the problem that an notification shows for a second after changing tabs (Same page). The notification in the current tab shows for 10 seconds (setting). Someone has a fix for this problems?