Web notifcations not working

Amado9 months ago

Hello!
I´m running traccar server 5.8
Web notifications are enabled in traccar configuration file (traccar.xml) as <entry key='notificator.types'>web,firebase,command</entry>
Push notifications via firebase are working ok and are received by traccar manager app
The problem is there no events notifications on the right panel on the web interface and in traccar manager. It is always empty
I checked traccar logs but I could not find any errors or related issues

I´m missing something?

Anton Tananaev9 months ago

Check connection status in settings.

Also note that it will only show events that happened when the app was open. It won't show old events.

Amado9 months ago

Thank you Anton and sorry but I can't find any "connection status" under settings in the web interface- Is it somewhere else?
Understood; only live events are shown

Anton Tananaev9 months ago

It's not somewhere else. You click settings and under "info" section there should be connection status.

Amado9 months ago

it says "offline". Why is that?

Anton Tananaev9 months ago

It means you have some problem with WebSocket connection. You need to investigate it. Sometimes it's blocked by a network provider.

Amado9 months ago

ok, I will see that. What ports should be open?

Anton Tananaev9 months ago

The issue has nothing to do with any ports.

Amado9 months ago

I found that there is no websocket server running in my ubuntu server
I did a quick search and I found two methods to enable websockets:
a) using nginx as reverse proxy
b) directly installing node.js (and choosing a specific port that listens for websockets connctions)

Which one do you suggest as more suitable for using with traccar app?

Anton Tananaev9 months ago

What you said makes no sense. Traccar is a WebSocket server.

Amado9 months ago

Is this is true why I have offline status? I tried with 3 internet providers and I have the same problem in all of them

Amado9 months ago

Or perhaps the problem is incorrect nginx.conf configuration. Do I have to add something to it to enable websockets? Could you give that modification?

Amado9 months ago

SOLVED: I added a "location" section within sites-enables file. Now status is online within info

Anton Tananaev9 months ago

You never even mentioned you have nginx. Next time you should provide full context.

Amado9 months ago

ok, undestood