Google hybrid map not available

Amadoa year 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 Tananaeva year ago

Have you set the API key?

Amadoa year 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 Tananaeva year 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
Amadoa year 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 Tananaeva year ago

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

Amadoa year 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 Tananaeva year ago

You can set it in the server attributes.

Amadoa year ago

Could you give me a link that explains that operation?

Anton Tananaeva year ago

You set it exactly the same way as user attribute.

Amadoa year ago

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

Anton Tananaeva year 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.

Amadoa year ago

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

Anton Tananaeva year ago

Both should work I think.

Amadoa year ago

ok, I'll try this