Client configuration file

Hyskens5 days ago

Hi All,
I am in the works of setting up a new project where we will have 50 mobile phones in rotation tracking a fleet.
I don't know if I've missed something here but is there not a way of bulk initiating the clients?
If I can avoid setting up 50 phones with the same config that would be great.
Regards
//VIktor

Anton Tananaev5 days ago

We don't have a way of doing it currently.

Hyskens5 days ago

Ok, so setting up 50 devices is a manual task?
Are there any plans for this? I am using Headwind MDM in this project and would like to do all config in there for all applications.
This would save allot of time and ensure that everything is done correct.
Having users do this config in the field is a big risk.

Anton Tananaev5 days ago

If you have MDM, you might be able to do it through that. We use standard preferences for settings.

Hyskens5 days ago

OK greate can you give me a pointer to some doc?

Anton Tananaev5 days ago

There's no doc for it. You should check doc from your MDM provider if that's something they allow.

Hyskens5 days ago

OK Head wind supports application setting
So what are the names of the attributes for server and so on?
I can set attribute and value in Headwind for a specific application

Anton Tananaev5 days ago

You can find it in the code. There's a resource file with a list of preferences.

Hyskens5 days ago

Super thanks Anton!

Hyskens5 days ago

Are these the correct preferences?

<?xml version='1.0' encoding='UTF-8'?>
<resources>
  <string name="app_name">Traccar Client</string>
...
  <string name="settings_buffer_off_summary">Buffering off</string>
Anton Tananaev5 days ago
Hyskens5 days ago

ok, sorry for all the questions, I'm new to this.
so let's say I want to set the server url

In Headwind i can set application settings in my config so i would set:
application:org.traccar.client
attribute:url
value:123.123.123.123:5050

Is the correct?

Anton Tananaev5 days ago

The value is incorrect. That's not a proper URL. But other things look fine.

Hyskens5 days ago

from your code i think these are the correct values to set:

Key	Value
url	https://your.server.com
id	${imei}
interval	60
distance	0
angle	0
buffer	true
wakelock	true
accuracy	0
Hyskens5 days ago

I've now tried to set this in the application settings as attributes and values for the application traccar under config.
So i have a specific config that installs traccar. I can set application settings in this config
The mobile client updates and things look fine. But when opening traccar nothing has changed.
I am using Headwind mdm