Web notifications showing as undefined

Antonioa year ago

hi

trying to implement web notifications on my traccar server and when i do a test it shows up on notification area as undefined

i noticed there are some past issues but not clear for me if any is related with my scenario as I see web notifications should work straight foward after configured

here some screenshots

https://uploaddeimagens.com.br/imagens/IsVbF2M
https://uploaddeimagens.com.br/imagens/FPQ5-C4

current version of traccar 5.12 running in a ubuntu server, i just updated from version 4.1 but notifications werent set before the upgrade

does anybody else experienced similar issue or have any idea what to be checked ?

Anton Tananaeva year ago

The "undefined" could mean you have some non-standard notifications. You should check what you get through the WebSocket connection.

Antonioa year ago

Got these lines from log I capture but donĀ“t anything that could indicate an issue

https://pastebin.com/raw/f9PRYRTt

Anton Tananaeva year ago

Have you checked the WebSocket connection data as I suggested?

Antonio10 months ago

sorry for my lack of knowlodge but do i check that ?

Anton Tananaev10 months ago

Network tab in browser developer tools.

Antonio10 months ago

that helped thanks )

here the request i see

https://uploaddeimagens.com.br/imagens/F3ivlm4

Anton Tananaev10 months ago

OK, there's no websocket on your screenshot. You have to open it before you load the page.

Antonio10 months ago

here what is received when button test is pushed

https://uploaddeimagens.com.br/imagens/DxOMtvU

Anton Tananaev10 months ago

Looks like it's expected.

Antonio10 months ago

should I see test as description instead undefined ?

Antonio10 months ago

i see if enable email on the same notification, the email arrives with correct description, it only happens on notifications for the web gui

Anton Tananaev10 months ago

should I see test as description instead undefined ?

No, as I said, it's expected.

Antonio10 months ago

then what is wrong ?

Anton Tananaev10 months ago

Nothing.