Are you sure it's not an error on your receiving end?
Yes, I'm sure the error is not my receiver. I am using Laravel and I validate the arrival of events by printing to the Log. My only lines are:
$data = json_decode(file_get_contents('php://input'));
Log::error('EVENT ' .$data->event->type. file_get_contents('php://input'));
And all I have in my Log are online and offline events.
EVENT deviceOnline{"event":{"id":310674,....
EVENT deviceOffline{"event":{"id":310676,...
I just realized that the event with id 310675 does not appear in my Log.
Searching in the database the event with id 310675 is of type geofenceEnter.
What could be the reason?
The only reason I can think of is that you're receiving forwarding from a different server.
There is a bug in the code:
Context: We were migrating from an old version so we had the firebase notificator set with the old config (notificator.firebase.key) and traccar was crashing because it didn't find the new configuration (notificator.firebase.serviceAccount).
Cannot invoke "String.getBytes()" because the return value of "org.traccar.config.Config.getString(org.traccar.config.ConfigKey)" is null - NullPointerException (NotificatorFirebase:76 < <gener:-1 < *:-1 < ... < NotificatorManager:70 < ...)
I disabled firebase notificator, removing it from notificator.types but the error was still there. I had to add serviceAccount config and now all the events are coming through
Fixed here. You would still have an error though if you have notifications with a disabled type, but it will be a different error.
I am using Traccar version 5.7
Configured forwarding of positions and events. Regarding the forwarding of positions, I have no problems, but regarding the forwarding of events, only online and offline events are reaching me. When I consult the events through the application, I see events of speeding, movement, stopped, etc. but I am not receiving these events when doing the forwarding, I only receive online and offline events.
What could be the error or the configuration that I am missing?