This is for Mac users:
- Visit: http://console.developers.google.com
- Create a new project
- Navigate to the Enable APIs section
- Locate and click on the “Google Maps Android API” service
- Click the “Enable API” switch
- Once enabled you will need to create permissions with the SHA1. Click the permissions button that shows up.
- Fields should be prepopulated with what you need and it should have the Google Android Map API as the service of choice.
- Click the “Show me what permissions I need” (Something like that) button
- Copy and paste the Titanium application ID (i.e. com.yourappname.app) into the first text box.
- Next you’ll generate our SHA1 hash/cert from the Terminal app on your Mac
- Paste this in:
keytool -list -v -keystore ~/Library/Application\ Support/Titanium/mobilesdk/osx/5.1.2.GA/android/dev_keystore
The version should reflect the most recent build or whichever version you’re using.
- The password field can be left blank. Press enter.
- Copy the value next to SHA1: F4:EE:…etc
- Paste that value into the second text box in the Google developer console next to where you pasted the application ID
- Click the create certificate.
- Boom. Now you have your key to use in the tiapp.xml file inside of the application node:
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="GENERATED KEY GOES HERE"/>