{ "id": "123286", "key": "TIMOB-15903", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-03-25T02:01:49.000+0000", "created": "2013-12-05T19:18:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "mapsv2", "module", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2017-03-21T21:43:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Issue:\r\nMaps will not display on an Android device running 2.3.3+ and Google Maps Android API v2 module 2.1.3.\r\n\r\nh4. Steps to Reproduce:\r\n1. Create a project from the code downloaded here: https://github.com/prakash-anubavam/V2MapTestApp\r\n2. Run the app on an Android device with 2.3.3+ (I tested with 2.3.6)\r\n3. Notice that the map will not display\r\n\r\nh4. Additional notes:\r\nThe user says that on Android devices 2.3.3- that the app will crash. I tested this app on a Galaxy S2, while the user was on an HTC Explorer (2.3.5) and\r\nGalaxy Y -GT-S5360 (2.3.6).", "attachment": [], "flagged": false, "summary": "Android: Map will not display in 2.3.3 and higher (Google Maps Android API v2 module)", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.8.5, Ti SDK 3.1.3.GA, Android SDK 2.3.3 and 4.4, Google Maps Android API v2 module 2.1.3", "comment": { "comments": [ { "id": "282700", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I looked at your project, and it looks like your tiapp.xml is missing the module link. You need to put this in your tiapp.xml:\n\n ti.map\n\n\nIf this is still happening, please attach a log.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T21:15:36.000+0000", "updated": "2013-12-05T21:15:36.000+0000" }, { "id": "282725", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "On my local machine, the project has the module added to the project and has the lines you provided in the tiapp.xml.\nI still do not see the map displaying properly.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T22:26:52.000+0000", "updated": "2013-12-05T22:26:52.000+0000" }, { "id": "282744", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This issue may actually come from the API key that the user placed in the tiapp.xml; it could be for the wrong environment. We are asking them to double check their key.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T23:11:03.000+0000", "updated": "2013-12-05T23:11:03.000+0000" }, { "id": "283065", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Eric--please reopen this if it continues to be a problem.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T18:47:07.000+0000", "updated": "2013-12-07T18:47:07.000+0000" }, { "id": "283075", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested using both my debug & release key in my app with the app.js from https://github.com/prakash-anubavam/V2MapTestApp & could not reproduce the issue.\r\n\r\nTested on the following devices & the maps seem to appear fine:\r\n1.)Nexus 5 -- android 4.4\r\n2.)Samsung Galaxy S4 -- android 4.2.2\r\n3.)Samsung Galaxy S3 -- android 4.0.4\r\n4.)Sony Experia -- android 2.3.7\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201312052211\r\nTi SDK : 3.2.0.v20131206182444 & 3.1.3.GA\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.0-beta\r\nCLI - 3.2.0-beta", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T21:57:08.000+0000", "updated": "2013-12-07T22:03:05.000+0000" }, { "id": "322601", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening as I am seeing this issue.\r\n\r\nCan see the issue on 3 devices as of now:\r\n1. Galaxy Nexus : android 4.2.2\r\n2. Samsung Galaxy S2 - android 2.3.6\r\n3. sony xperia - android 2.3.7\r\n\r\nworks fine on Nexus 5 - android 4.4.4\r\nchecking it on more devices will update accordingly.\r\n\r\nI tried with sdk 3.3.0.GA see the issue there too.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201409032106\r\nTi SDK : 3.4.0.v20140907150914\r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-beta\r\nCLI - 3.4.0-beta\r\nCode Processor: 1.1.1\r\nMap module : 2.1.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T18:48:15.000+0000", "updated": "2014-09-09T18:49:40.000+0000" }, { "id": "325399", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this issue related to TIMOB-17085?", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-24T09:07:33.000+0000", "updated": "2014-09-24T09:07:33.000+0000" }, { "id": "346722", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~msamah], can you take a look when you get in?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-20T17:38:13.000+0000", "updated": "2015-03-20T17:38:13.000+0000" }, { "id": "346931", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~ingo] Will do.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-23T02:23:28.000+0000", "updated": "2015-03-23T02:23:28.000+0000" }, { "id": "346938", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] On the devices that fail, what does the log say? Does it say something very similar to:-\r\n{code}\r\n[WARN] : GooglePlayServicesUtil: Google Play services out of date. Requires 6171000 but found 5089036\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-23T04:38:56.000+0000", "updated": "2015-03-23T04:41:56.000+0000" }, { "id": "346954", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] If you can, could you share any log files with the warning/errors?\r\n\r\nI'm using an Android 4.4.4 Nexus 4 and it seems to not work cause it has an outdated Google Play service. I'm suspecting that this could be it.\r\n\r\nCan you try running this code? If it gives the error code 2, it means that the device needs to upgrade the Google Play (or OS) in order to use this version of Ti.Map.\r\n{code}\r\n// Add in the module\r\nvar MapModule = require('ti.map');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white',\r\n\tnavBarHidden : true,\r\n\texitOnClose : true\r\n});\r\nvar googlePlayServiceCode = MapModule.isGooglePlayServicesAvailable();\r\n\r\nif (googlePlayServiceCode == MapModule.SUCCESS) {\r\n\r\n\tvar map1 = MapModule.createView({\r\n\t\tuserLocation : true,\r\n\t\tmapType : MapModule.NORMAL_TYPE,\r\n\t\tanimate : true,\r\n\t\tregion : {\r\n\t\t\tlatitude : -33.87365,\r\n\t\t\tlongitude : 151.20689,\r\n\t\t\tlatitudeDelta : 0.1,\r\n\t\t\tlongitudeDelta : 0.1\r\n\t\t},\r\n\t\theight : '70%',\r\n\t\ttop : 50,\r\n\t\tleft : 10,\r\n\t\tright : 10\r\n\t});\r\n\r\n\twin.add(map1);\r\n} else {\r\n\tswitch(googlePlayServiceCode) {\r\n\tcase MapModule.SERVICE_VERSION_UPDATE_REQUIRED:\r\n\t\talert(\"Please upgrade your Google Play Service before using this app. Error code: \" + googlePlayServiceCode);\r\n\t\tbreak;\r\n\tdefault:\r\n\t\talert(\"An error occured using the Google Play Service. Error code: \" + googlePlayServiceCode);\r\n\t}\r\n\r\n}\r\nwin.open(); \r\n\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-23T07:18:32.000+0000", "updated": "2015-03-23T07:31:41.000+0000" }, { "id": "347194", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~msamah]I ran your code on the devices I mentioned which were had this issue & below are my findings using sdk 4.0.0.v20150323131014:\r\n1. Galaxy Nexus : android 4.2.2 - Got error code 2 as the google play services needs updating.\r\n2. Samsung Galaxy S2 - android 2.3.6 - Map showed without any issues.\r\n3. Sony xperia - android 2.3.7 - Got error code 2 as the google play services needs updating.\r\n\r\nI could not run the tests with 3.4.0SDK & 3.3.0 SDK due to Java 1.8.0 incompatibility.\r\n\r\nI don't remember exactly what was the reason for failure before as the comment is like 6 months old.\r\n\r\nEnvironment:\r\nAppc Studio : 4.0.0.201503232213\r\nTi SDK : 4.0.0.v20150323131014\r\nCLI : 4.0.0-alpha\r\nAlloy : 1.6.0-alpha\r\nMAC Yosemite : 10.10.2\r\nAppc npm : 0.3.34\r\nAppc CLI : 0.2.187\r\nMAP module: 2.2.3\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-03-24T23:38:24.000+0000", "updated": "2015-03-24T23:39:41.000+0000" }, { "id": "347210", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] If it's an error 2 code and not really any other issues, it's working correctly. The device just needs to upgrade/update it's google play service.\r\n\r\nIf there's no other outstanding issues, I'll resolve this ticket.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-03-25T01:54:24.000+0000", "updated": "2015-03-25T02:02:16.000+0000" }, { "id": "414492", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:43:19.000+0000", "updated": "2017-03-21T21:43:19.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }