Notifications delay

Fareed Qureshi2 years ago

I am getting delay in notifications on web app, and also notifications are not showing in descending order s according to time.

Anton Tananaev2 years ago

Check WebSocket connection in the browser dev tools.

As for the order, why do you expect descending order?

Fareed Qureshi2 years ago

Hi,
Actually I have checked settings, my observations are below

  1. I checked table tc_events where event is recorded as per current time stamp (means working fine)
  2. When I receive notification for sms, mentioned time was ok but at that time server time is different (means receive notification after random minutes. For example
    'to' => 'xxxxxxxxxxxxx',
    'body' => 'AB-1234 moving at 2022-11-24 11:34:35',
    'servertime' => '2022-11-24 11:40:29',
  3. In above example notification received at 11:40:29 and it was inserted in table tc_events at 11:34:35 which is correct.
  4. Similarly on web interface it was received with same delay.

AB-111 • Device moving
2022-11-24 11:34:35

AB-222 • Device moving
2022-11-24 11:37:22

AB-333 • Device stopped
2022-11-24 11:30:42

AB-444 • Device moving
2022-11-24 11:33:19

You can see notifications also not comming when it receives, new notification should come first and should be above on all other notifications, but here notifications are not according to old/new.

Hope you understand my query.

Fareed Qureshi2 years ago

One more thing which I noticed is that status online/offline, geofence Exit/Enter are showing correctly but all other notifications are appearing with delay.

Anton Tananaev2 years ago

Are you aware of the trips/stops logic? We have a documentation for it. I would recommend reading it.

Fareed Qureshi2 years ago

thanks, I understand now.