Firebase Notifications Error

Ricardo 10 months ago

I'm using version 4.15 of traccar where I had configured firebase notifications in a self-developed app and it was receiving notifications normally but for some time now the notifications stopped receiving and in the traccar server logs I get this:
WARN: Firebase notification error - HTTP 404 Not Found - NotFoundException (...), I've tried to find the problem by reading the firebase documentation in case there was an update or something happened but I haven't been able to find the problem. I don't know if you have any clue as to what could be happening.

Anton Tananaev 10 months ago

You have to upgrade.

hamzakaleem 8 months ago

Hi Anton, I hope you're doing well. I am using traccar version 5.12, because with the tracker devices I am using (gt06 protocol) the reports calculation with odometer looks good on this version and after this version the odometer doesn't increase for some reason.

I am also facing the same issue with notifications but I can't upgrade. Is there any solution for me?

Anton Tananaev 8 months ago

You can backport the implementation, but it would probably be easier to solve whatever problem you have with the GT06 protocol.

hamzakaleem 8 months ago

The problem with gt06 is that the odometer for devices gets kind of paused all the time. It just updates once in a while. Otherwise, same odometer for hours even though the device is moving. This also messes up the average speed calculation.

I guess some calculations were changed after 5.12 version due to which it happens with new versions only.

Anton Tananaev 8 months ago

We only calculate total distance, not odometer.

hamzakaleem 8 months ago

apologies for the choice of words. but the issue is with total distance.

Anton Tananaev 8 months ago

I don't think we changed anything in the way it's calculated.

hamzakaleem 8 months ago

I am just a noob but something must be different as the issue seems to be solved just by changing the versions.
can I add something in the configuration to tackle such issue?

Anton Tananaev 8 months ago

I can't give advice without knowing what the root cause is.