Web notifications showing as undefined

Antonio 2 years 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 Tananaev 2 years ago

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

Antonio 2 years ago

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

https://pastebin.com/raw/f9PRYRTt

Anton Tananaev 2 years ago

Have you checked the WebSocket connection data as I suggested?

Antonio 2 years ago

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

Anton Tananaev 2 years ago

Network tab in browser developer tools.

Antonio 2 years ago

that helped thanks )

here the request i see

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

Anton Tananaev 2 years ago

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

Antonio 2 years ago

here what is received when button test is pushed

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

Anton Tananaev 2 years ago

Looks like it's expected.

Antonio 2 years ago

should I see test as description instead undefined ?

Antonio 2 years 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 Tananaev 2 years ago

should I see test as description instead undefined ?

No, as I said, it's expected.

Antonio 2 years ago

then what is wrong ?

Anton Tananaev 2 years ago

Nothing.