Geofence ID Question

033972 years ago

I had Traccar server 4.12 installed and the geofenceIds I was getting when device was onsite was the ID of the geofence and when offsite I was getting an empty value.
I have upgraded to version 5.27 and now I am again getting the ID of the geofence but now when the device is offsite I am getting a null value which I cannot process this in my code.

Is this a proper behavior?

Anton Tananaev2 years ago

There's no such thing as version 5.27.

And why you can't process null?

033972 years ago

@Anton
Sorry the version is 5.6.
Is the null a proper value when offsite?

Anton Tananaev2 years ago

Yes, null is expected.

033972 years ago

@Anton
Can I make this to return a certain value when offsite instead of null?

Anton Tananaev2 years ago

You can. The source code is open, so you can make any customization you want.

033972 years ago

I meant from inside the application.
Can you please tell me when it was the last version that geofenceid was not sent as null?