Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12125] Android: Implement support for Google Maps API V2

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-02-11T18:32:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 03 API, 2013 Sprint 03
ComponentsAndroid
Labelsinsight
ReporterPedro Enrique
AssigneeHieu Pham
Created2012-12-18T22:03:00.000+0000
Updated2018-08-06T17:49:12.000+0000

Description

In Titanium we are using, as far as I know, the API v1 of the Google Maps. This is getting deprecated and we're seeing some developers running into problems already. The map is not being displayed in production. Our docs are sending us to a webpage that no longer exist: http://code.google.com/android/maps-api-signup.html We need to implement API v2 https://developers.google.com/maps/documentation/android/ Testing Steps: 1. Run app.js in examples/ 2. Add this to tiapp.xml
<manifest>
        	<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
   			<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
            <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
            <permission android:name="com.map.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
            <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
            <uses-permission android:name="com.map.permission.MAPS_RECEIVE"/>
            <application>
                <meta-data
                    android:name="com.google.android.maps.v2.API_KEY" android:value="API KEY HERE"/>
            </application>
        </manifest>
3. Replace "API KEY HERE" with real API key, which can be obtain from google. You can find instructions of how to obtain key here: https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key 4. Make sure the testing device has Google Play installed. Otherwise maps wont work

Comments

  1. Arthur Evans 2012-12-19

    New webpage for v1 API keys are here: https://developers.google.com/maps/documentation/android/v1/maps-api-signup Android API v2 was released a couple of weeks ago, and is not supported by Titanium yet, so they'll need to use the old map keys. According to Google, API keys will be available through March of next year. Apps built with v1 will continue to work after that, but no new API keys will be issued.
  2. Ping Wang 2013-02-11

    PR https://github.com/appcelerator/titanium_modules/pull/67
  3. Rick Blalock 2013-03-01

    Is this in 3.0.2GA? Or no?
  4. Arthur Evans 2013-03-01

    Not in 3.0.2. It will be packaged with 3.1, and available for download from the marketplace soon. (Docs will also be added to the main docs website soon, under Modules.Map.) Hieu, correct me if I'm wrong, but this should run on 3.0.2, right? Is there a minimum Ti SDK version required for this module?
  5. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source