GT06 device error when connect

Niksu 3 years ago

Hi
I update Traccar to 5.4 today, and now i get error when my gt06 tracker try to connect. I paste it below:

2022-10-03 16:17:05  INFO: [T801b4ab8] connected
2022-10-03 16:17:05  INFO: [T801b4ab8: gt06 < 176.72.5.146] 78780d010359857082808387000390960d0a
2022-10-03 16:17:05  INFO: [T801b4ab8: gt06 > 176.72.5.146] 787805010003face0d0a
2022-10-03 16:17:05  INFO: [T801b4ab8] error - Cannot invoke "String.getBytes()" because the return value of "org.traccar.config.Config.getString(org.traccar.config.ConfigKey)" is null - NullPointerException (NotificatorFirebase:57 < <gener:-1 < *:-1 < ... < NotificatorManager:73 < ...)
2022-10-03 16:17:05  INFO: [T801b4ab8] disconnected

Any ideas how i can fix it ?

Niksu 3 years ago

Nevermind. I noticed that i use old legacy firebase key. It start to work when i change it to service account. After that device connect fine and not give me any error anymore.

gmartinez 3 years ago

Hi Niksu, one question, where you put the firebase key? in traccar.xml? into

<entry key='notificator.firebase.key'>¿HERE?</entry>?

I have the same problem but I can`t connect traccar with firebase but I connected Firebase with Android App. Thanks for your support.

Anton Tananaev 3 years ago

Please read the documentation:

https://www.traccar.org/notifications/#push

gmartinez 3 years ago

Thanks Anton.