Web notifications showing as undefined

Antonio8 months 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 Tananaev8 months ago

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

Antonio8 months ago

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

https://pastebin.com/raw/f9PRYRTt

Anton Tananaev8 months ago

Have you checked the WebSocket connection data as I suggested?

Antonio7 months ago

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

Anton Tananaev7 months ago

Network tab in browser developer tools.

Antonio7 months ago

that helped thanks )

here the request i see

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

Anton Tananaev7 months ago

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

Antonio7 months ago

here what is received when button test is pushed

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

Anton Tananaev7 months ago

Looks like it's expected.

Antonio7 months ago

should I see test as description instead undefined ?

Antonio7 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 Tananaev7 months ago

should I see test as description instead undefined ?

No, as I said, it's expected.

Antonio7 months ago

then what is wrong ?

Anton Tananaev7 months ago

Nothing.