Traccar Manager switching servers

nbl1268 a year ago

Hi team, got a small set up, two prod traccar servers, and one test server, different hostnames/IPs, and occasionally access the demo server/s.
I can change the server address in the manager app, via that padlock on home page, bu retyping in the full server details.
Wondering if there is an options (that i havent found yet) to store each server setting in the app, can just switch between those servers?
OR if there is some better way to do this?

Anton Tananaev a year ago

If you want to update the preset servers, you would have to change the source code.

nbl1268 a year ago

Thanks Anton, okay, so more coded needed to add option in the app to save server settings and make them available to select between?

Anton Tananaev a year ago

Yes.

simplementese 10 months ago

Hello good afternoon, I would like to ask a question about this, in The app in the lock, the initial server loaded when installing the app appears, then when pressing a list with server options such as demo.traccar.org demo2.traccar.org etc. is displayed. - The initial server can be set in the fragment_star.xml file correctly. - Now the rest of the list of servers from where it takes it, I am very good at this and I did not find the corresponding place in the code

Anton Tananaev 10 months ago

It's in the web app code.

simplementese 10 months ago

Forgive my ignorance, I couldn't find it, could you direct me where?

Anton Tananaev 10 months ago

It's pretty easy to find if you just search for "demo":

https://github.com/traccar/traccar-web/blob/master/src/login/ChangeServerPage.jsx#L14

simplementese 10 months ago

Hi Anton, sorry. I did search, but in the Android client. I thought the app handled that! Thank you very much.

Anton Tananaev 10 months ago

In my earlier comment I explicitly said that it's in the web app code.

simplementese 10 months ago

Sorry for my poor English. I didn't quite understand. Very kind!