Google hybrid map not available

Amado2 months ago

I have two traccar servers (server1 and server2) and one customized android TraccarManager (TM) app
I recently upgraded booth servers to 6.4 version
Web client shows Google hybrid maps (GHM) as available and selected by default on booth servers
TM shows GHM available and selected by default on server1
TM shows GHM NOT available (asks for a Google API key to enable it)
App version is 6.4 in server1 but stays 5.8 on server2

How to enable GHM for TM on server2? How to update app version to 6.4 on server2?

Anton Tananaev2 months ago

Have you set the API key?

Amado2 months ago

Yes, API key is set on server2 (and it works ok via web client) but not in Traccar Manager when is is connected to server2 (Traccar Manager shows Google Hybryd map not enabled)
Is very strange since the same Traccar Manager connected to server1 shows GHM enabled and as default

Anton Tananaev2 months ago

Please provide screenshots (blur the actual key) from the Traccar Manager that doesn't work:

  1. Screenshot of the place where you see the map as disabled
  2. Screenshots of the place where you have the API key set
Amado2 months ago

google hybrid map disabled.jpg

You can see "Google hibrido" (spanish) is in red disabled. When you click on it, it asks for the API key.
I did a test on a Traccar Manager (TM) admin account connected to that server2, I copy and paste the API key and it works for that account only. Other users on that server using the same TM app still show GHM disabled

Anton Tananaev2 months ago

So, it works if you set the API key for the account? What is the problem then?

Amado2 months ago

The problem is that I have to go to more than 500 user's phones and paste the API key manually one by one and that is not feasible.
Is there a way to do it all at once from the server side?
Where is that API key information stored? at the server or at the apps config files in the phone?

Anton Tananaev2 months ago

You can set it in the server attributes.

Amado2 months ago

Could you give me a link that explains that operation?

Anton Tananaev2 months ago

You set it exactly the same way as user attribute.

Amado2 months ago

Do you mean going to Settings > Users > Edit (button) > Attributes ?
at https://domain.com/settings/user/xxx ?

Anton Tananaev2 months ago

That's user attributes. You want to do the same thing in the server attributes, if you want to apply it to the whole server.

Amado2 months ago

I see two possible options for this attributte's name: "googleKey" and "Google API Key"
Which one should I use?

Anton Tananaev2 months ago

Both should work I think.

Amado2 months ago

ok, I'll try this