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?

Antonioa year ago

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

Anton Tananaeva year ago

Network tab in browser developer tools.

Antonioa year ago

that helped thanks )

here the request i see

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

Anton Tananaeva year ago

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

Antonioa year ago

here what is received when button test is pushed

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

Anton Tananaeva year ago

Looks like it's expected.

Antonioa year ago

should I see test as description instead undefined ?

Antonioa year 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 Tananaeva year ago

should I see test as description instead undefined ?

No, as I said, it's expected.

Antonioa year ago

then what is wrong ?

Anton Tananaeva year ago

Nothing.