Error using Firebase nofication

Niksu2 years ago

I get following error when i try to test firebase notifications using test channels feature, but even when there is that error those test notifications came trough, so they work. Also that came when notification is send using Firebase method, they came trough also in my app / phone. But when there is that error message my tracker / device location is not update anymore. I need to reboot that device or server. I use 5.4 version of Traccar. Everything worked fine sometime after update, but now it start to throw those errors. Nothing has changed since. And notifications came trough always but because location is not update after that, i needed to remove firebase notifications until that is fixed.

WARN: Notification failed - SenderId mismatch - FirebaseMessagingException (... < NotificatorFirebase:94 < NotificationManager:106 < ... < *:103 < ... < *:102 < *:126 < ConnectionManager:245 < ...)
Anton Tananaev2 years ago

The error is coming directly from the Firebase server or SDK. I suspect there's some issue with the device token.

Missa2 years ago

I get the same error. I added google-services.json from my project created on firebase then try test firebase channel but i get the above error. How do you add device token?

Anton Tananaev2 years ago

Where did you get the google-services.json? Are you sure it's a service account file?