NOTIFICATION REALTIME DONT REFRESH

yanick beaulieu Posted in Beginning Developers 7 months ago

I would like to know if it is possible to ensure that notifications are active even when you do not refresh the page. So that we can see the actions in real time, do I need to activate a cron task?

Replies
Catalan Yanick beaulieu Replied 7 months ago

I managed to set the delay to 1 second (1000 * 1)

German Michael Zülsdorff Replied 7 months ago

Well,
I pointed you to the source. But if one minute intervals don't work, 5 second intervals won't work either.
Thus, check your error_log for php issues and use the browser's developer console for javascript errors.

Catalan Yanick beaulieu Replied 7 months ago

thx , there is a problem because the notifications are currently visible only if the person refreshes their page that's what I don't understand otherwise 60 seconds is a very long time if I want to refresh it every 5 seconds what should I do if I want take the test

German Michael Zülsdorff Replied 7 months ago

Notifications are automatically refreshed in intervals of 60 seconds.
(see autocheck.php inside of the OssnNotifications component)
Manually page reloads are not necessary.