{ "id": "114904", "key": "TIMOB-13978", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "15497", "description": "2013 Sprint 11 API", "name": "2013 Sprint 11 API", "archived": true, "released": true, "releaseDate": "2013-06-03" }, { "id": "15109", "description": "2013 Sprint 11", "name": "2013 Sprint 11", "archived": true, "released": true, "releaseDate": "2013-06-03" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-05-29T23:03:49.000+0000", "created": "2013-05-24T10:08:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.1" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-11T08:31:15.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": "Error messages are displayed in alert instead of currentHeading and currentPosition.\r\n\r\nThis is not regression since the issue occurs in 3.1.0 GA as well.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. launch the app.\r\n\r\nActual:\r\nTwo alerts are dispalyed stating: Error: Invalid type passed to the function.\r\n\r\nExpected:\r\nShould display current heading and current position null alerts.\r\n\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nfunction test(fn)\r\n\t\t{\r\n\t\t\ttry { fn(); }\r\n\t\t\tcatch(e) { alert(e.toString()); }\r\n\t\t}\r\n\t\t\r\n\t\ttest(function(){\r\n\t\t\tTi.Geolocation.getCurrentHeading();\r\n\t\t});\r\n\t\t\r\n\t\ttest(function(){\r\n\t\t\tTi.Geolocation.getCurrentPosition();\r\n\t\t});\r\n\t\t\r\n\t\twin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Geolocation - Error messages are displayed in alert instead of currentHeading and currentPosition", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK:3.1.1.v20130523170057\r\nAppcelerator Studio: 3.1.1.201305232424\r\nOS: OSX 10.7.5\r\nDevice:iPhone5(6.0)\r\nXcode: 4.6", "comment": { "comments": [ { "id": "257118", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with: \r\nSDK:3.1.1.v20130610164554\r\nAppcelerator Studio: 3.1.1.201306101955\r\nOS: OSX 10.7.5\r\nDevice:iPhone5(v 6.0)\r\nXcode: 4.6\r\n\r\nTested the given app, works fine.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T08:31:15.000+0000", "updated": "2013-06-11T08:31:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }