Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

One Google Maps Key for multiple developers (Android)? Eclipse custom keystore?

This cannot be impossible: We have four developers on an android app that uses the google maps api. We have generated a maps key that works for the one who generated it. All the others, however, see a tiled MapView without the actual map. Since my debug.keystore was used to generate, I was suspecting that the others need the same keystore. So I moved it into the repository so that everyone has a copy of it now. Then, everyone pointed eclipse towards that keystore using the custom keystore setting in Android->Build. This still does not work. What do we have to do? Surely we don't have to each use our own key and keep replacing it after every pull?

This site (and the web in general) contains tons of information on Google Maps API keys, but none answered my question unfortunately.

like image 483
Ole Avatar asked Dec 05 '10 23:12

Ole


People also ask

Can I use the same API key for multiple apps?

You can use the same keystore and the API key for different applications. Use the same key to sign your apps.

Can Google Maps API key be used in multiple domains?

2 Answers. Show activity on this post. You can avoid this whole problem: Maps API keys now support multiple domains (and you can edit authorised domains at any time).

Is Google Maps API key free?

The API is available for developers that have a free Google Maps API key. Usage of the API is not strictly free, but they do offer $200 of free monthly usage for most users. The pricing scales to fit your particular needs and you are only charged for your API usage.


2 Answers

In year 2013 for V2 you can include as many keystores app as you like. For me it was debug and production keystores. Just follow process described here (this is a common process). When you create Android Key in Google API Console specify each fingerprint;package.name per line. E.g.:

BB:0D:AC:74:D3:21:E1:43:67:71:9B:62:91:AF:A1:66:6E:44:5D:75;com.example
94:66:06:01:12:27:AC:39:BB:44:90:41:40:86:88:3D:96:A7:99:A9;com.example

That's it! Now you have 1 API Key for 2 keystores.

like image 167
mente Avatar answered Oct 13 '22 04:10

mente


Rather than trying to point Eclipse to a different keystore, just replace your local debug.keystore with the shared copy.

like image 37
CommonsWare Avatar answered Oct 13 '22 03:10

CommonsWare