Location Template - Flutter Background Location Plugin

SwayDev2 days ago

Hello,

I’m curious why the Traccar client has the location template implemented L129. Why not simply send the raw data—like other protocols do—and let the Traccar Server handle the formatting?

Anton Tananaev2 days ago

It's there to support legacy server versions.

SwayDev2 days ago

Got it, The only problem is if someone uses the same plugin in a code-base of their own and want to use Traccar Server. They have to follow the template used by Traccar Client, instead of using the default payload/format.

That being said, appreciate your response :)

Anton Tananaev2 days ago

That's incorrect. Default format should work just fine in the new versions of Traccar. This is a temporary backward compatibility workaround.

SwayDev2 days ago

Thank you for clarifying.

Will do a deeper dive into my implementation, maybe i did something wrong possibly related to the device_id should be a string, I set it as a number.