Traccar Manager switching servers

nbl126823 days 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 Tananaev23 days ago

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

nbl126823 days 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 Tananaev23 days ago

Yes.

simplementese5 days 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 Tananaev5 days ago

It's in the web app code.

simplementese5 days ago

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

Anton Tananaev5 days 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

simplementese4 days ago

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

Anton Tananaev4 days ago

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

simplementese4 days ago

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