{ "id": "136329", "key": "TIMOB-17665", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" }, { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-30T21:04:08.000+0000", "created": "2014-09-09T21:09:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios8", "module_map", "parity", "qe-3.4.0", "usability" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [ { "id": "40961", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "89589", "key": "TIMOB-8561", "fields": { "summary": "Android: add permissions for map when map module is used", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-21T20:28:52.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5. To reproduce\r\n1. Run the sample code, make sure to add ti.map module to tiapp.xml\r\n{code}\r\nvar MapModule = require('ti.map');\r\n\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nwindow.title = 'Test';\r\nwindow.backgroundColor = '#000';\r\nwindow.exitOnClose = true;\r\n\r\nwindow.add(MapModule.createView({\r\n\tuserLocation : true\r\n}));\r\n\r\nwindow.open(); \r\n{code}\r\nh5. Actual result\r\nNo permission to use the user current location, no pin to display it.", "attachment": [ { "id": "51093", "filename": "ios7.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T21:09:50.000+0000", "size": 444990, "mimeType": "image/png" }, { "id": "51094", "filename": "ios8.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-09T21:09:50.000+0000", "size": 460235, "mimeType": "image/png" }, { "id": "51237", "filename": "ti.map-iphone-2.0.3.zip", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-13T19:42:42.000+0000", "size": 727690, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS8: userLocation is not displayed when using ti.map module", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409032106\r\nTitanium SDK, build: 3.4.0.v20140909110913\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#28af71f2e10ca61929443277176323ec8746ee14)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#be6d7a682c881e42246a2d31caac931b5f694024)\r\ntitanium-code-processor@1.1.1\r\nXcode6-Beta7\r\nDevice: iPhone 5S iOS 8.05b", "closedSprints": [ { "id": 220, "state": "closed", "name": "2014 Sprint 20 SDK", "startDate": "2014-09-29T22:32:25.224Z", "endDate": "2014-10-13T18:25:00.000Z", "completeDate": "2014-10-13T18:25:45.560Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "323278", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I think this is best for you to review.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T14:48:38.000+0000", "updated": "2014-09-12T14:48:38.000+0000" }, { "id": "323376", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vduggal] to act as reviewer.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-12T18:25:50.000+0000", "updated": "2014-09-12T18:25:50.000+0000" }, { "id": "323485", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR for master: https://github.com/appcelerator-modules/ti.map/pull/48\r\nPR for stable: https://github.com/appcelerator-modules/ti.map/pull/49", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-13T06:31:17.000+0000", "updated": "2014-09-13T06:31:17.000+0000" }, { "id": "323523", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Since code is accepted, can we get a PR to merge this into the SDK?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-13T22:11:23.000+0000", "updated": "2014-09-13T22:11:23.000+0000" }, { "id": "323546", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR for titanium_mobile with updated module.zip:\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/6074\r\n3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6080", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-14T22:50:04.000+0000", "updated": "2014-09-15T17:32:14.000+0000" }, { "id": "323701", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Zip PR master: https://github.com/appcelerator-modules/ti.map/pull/50\r\nZip PR stable: https://github.com/appcelerator-modules/ti.map/pull/51", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T17:25:34.000+0000", "updated": "2014-09-15T17:25:34.000+0000" }, { "id": "323741", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Open the tiapp.xml in the ios / plist / dict section add the below:\r\n{code}\r\n\r\n \r\n \r\n NSLocationAlwaysUsageDescription\r\n Optional description here, can be empty\r\n \r\n \r\n \r\n{code}\r\nTested and verified the fix with\r\nMac osx 10.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201409131030\r\nTitanium SDK, build: 3.4.0.v20140915103316\r\nacs@1.0.16\r\nalloy 1.5.0-rc2\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0-rc3\r\ntitanium-code-processor@1.1.1\r\nXcode6\r\nDevice: iPhone 5S iOS8\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T18:40:18.000+0000", "updated": "2014-09-15T18:40:18.000+0000" }, { "id": "324826", "author": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Has this issue been tested with the NSLocationWhenInUseUsageDescription plist key? When I use that key the users location is still not showing up on the map. I get the prompt but the location is not shown on the map. \r\n{code}\r\n\r\n \r\n \r\n NSLocationWhenInUseUsageDescription\r\n Optional description here, can be empty\r\n \r\n \r\n\r\n{code}\r\n", "updateAuthor": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-20T02:12:12.000+0000", "updated": "2014-09-20T02:12:12.000+0000" }, { "id": "324920", "author": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found a solution to this where when using NSLocationWhenInUseUsageDescription the users location would not show up on the map. Please see the commit: https://github.com/TravisCrist/ti.map/commit/e0e8066195d11cf0f13a4843f1d3ed61ebb84cd4 for the fix. It requires a change to the map module. I am unsure how to make a PR with just that commit. ", "updateAuthor": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T15:51:00.000+0000", "updated": "2014-09-22T15:51:00.000+0000" }, { "id": "324921", "author": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Running some test based on Travis comment i have verified the issue with SDK 3.4.0.RC2 and Ti.Map module 2.0.3, when the NSLocationWhenInUseUsageDescription plist key is used the permission is correctly prompted and we can correctly retrieve the user location with Ti.Geolocation.getCurrentPosition but the map displayed in the app is not showing the blue marker for the user location, if we use the NSLocationAlwaysUsageDescription plist key the user location is correctly shown with the blue marker in the map\r\n\r\ntiSDK 3.4.0.RC2\r\ntiMap 2.0.3\r\nXcode 6\r\niPhone 5s iOS 8\r\n\r\nh3.Test Code\r\n{code}\r\nvar MapModule = require('ti.map');\r\n \r\nvar window = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\n \r\nvar mapview = MapModule.createView({\r\n userLocation : true\r\n});\r\nwindow.add(mapview);\r\n\r\nsetTimeout(function(){\r\n\tTi.Geolocation.getCurrentPosition( function(e) {\r\n if (!e.success || e.error) {\r\n alert('error ' + JSON.stringify(e.error));\r\n return;\r\n }\r\n alert(e.coords.latitude + ' ' + e.coords.longitude);\r\n var region = {\r\n latitude: e.coords.latitude,\r\n longitude: e.coords.longitude,\r\n animate:true,\r\n latitudeDelta:0.05,\r\n longitudeDelta:0.05\r\n };\r\n mapview.setLocation(region);\r\n});\r\n},5000);\r\n\r\nwindow.open(); \r\n{code}\r\n\r\ntiApp.xml\r\n{code}\r\n\r\n \r\n \r\n NSLocationWhenInUseUsageDescription\r\n Optional description here, can be empty\r\n \r\n \r\n\r\n{code}", "updateAuthor": { "name": "mcota", "key": "mcota", "displayName": "Marco Cota", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T15:51:32.000+0000", "updated": "2014-09-22T15:51:32.000+0000" }, { "id": "324955", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator-modules/ti.map/pull/53\r\nstable PR: https://github.com/appcelerator-modules/ti.map/pull/54\r\n\r\nThank you [~tcrist]!", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T18:45:58.000+0000", "updated": "2014-09-22T18:45:58.000+0000" }, { "id": "324956", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TiSDK PRs\r\n3_4_X PR: https://github.com/appcelerator/titanium_mobile/pull/6150\r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/6151", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T18:53:11.000+0000", "updated": "2014-09-22T18:53:11.000+0000" }, { "id": "325175", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and verified the userLocation is displayed when using ti.map module.\r\nThe environment tested:\r\nMac osx 10.9.5 Mavericks\r\nAppcelerator Studio, build: 3.4.0.201409161950\r\nTitanium SDK, build: 3.4.0.v20140922135716\r\nacs@1.0.16\r\nalloy 1.5.0-rc2\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium 3.4.0-rc4\r\ntitanium-code-processor@1.1.1\r\nXcode6.0.1 (6A317)\r\nDevices:\r\niPhone6 iOS 8\r\niPhone6+ iOS8\r\n\r\nClosing as fixed.\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-23T16:53:22.000+0000", "updated": "2014-09-23T16:53:22.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }