{ "id": "60829", "key": "TIMOB-197", "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": "11216", "name": "Release 0.8.0", "archived": true, "released": true, "releaseDate": "2009-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:52:18.000+0000", "created": "2011-04-15T02:25:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:52:18.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": "{html}{html}", "attachment": [], "flagged": false, "summary": "Android: getCurrentPosition does not always return a position.", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122934", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

getCurrentLocation doesn't always return a value. \nSupport Ticket When using coarse accuracy with watchPosition,\ndoes return data, but it is selecting providers only if they're\nenabled. getCurrentPosition, defaults to high accuracy, but is set\nto select any provider. If course accuracy is set explicitly, then\ngetCurrentPosition returns a result.

\n

This behavior suggests that getBestProvider is using the GPS for\na position and since it may not have a last position, it doesn't\nlook further down the providers for an enabled provider that does\nhave a position. getCurrentPosition should be changed and tested\nwith only using enabled providers, to degrade gracefully, if\npossible.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:25:16.000+0000", "updated": "2011-04-15T02:25:16.000+0000" }, { "id": "122935", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [db1f307d3425092a79c6848937684bfec5313a76])\n[#197\nstate:resolved] Allowed getCurrentPosition to check for any last\nposition, not just currently enabled ones \nhttp://github.com/appcelerator/titanium_mobile/commit/db1f307d34250...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:25:16.000+0000", "updated": "2011-04-15T02:25:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }