Client configuration file

Hyskensa month 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 Tananaeva month ago

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

Hyskensa month 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 Tananaeva month ago

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

Hyskensa month ago

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

Anton Tananaeva month ago

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

Hyskensa month 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 Tananaeva month ago

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

Hyskensa month ago

Super thanks Anton!

Hyskensa month 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 Tananaeva month ago
Hyskensa month 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 Tananaeva month ago

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

Hyskensa month 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
Hyskensa month 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