{ "id": "62524", "key": "TIMOB-1892", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:28.000+0000", "created": "2011-04-15T03:04:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "geolocation", "ios", "ipad", "iphone", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:28.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": "{html}

When asking permission to use the users location on a device, if\nthey refuse, we need to ask again instead of throwing an error.\nThis is what happens when running in the simulator, but not on the\ndevice. iphone, ipad.

{html}", "attachment": [], "flagged": false, "summary": "Ask again for geolocation on device", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126912", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [4f30af9bc90694ac299fff4b8123ef25094f0012])\n[#1892 state:fixed-in-qa] Added\nTi.Geolocation.restart() function to reset the geolocation system.\nAllows for multiple location usage prompts when using 'location'\nlisteners. \nhttp://github.com/appcelerator/titanium_mobile/commit/4f30af9bc9069...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:51.000+0000", "updated": "2011-04-15T03:04:51.000+0000" }, { "id": "126913", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.4c5cd4a 4.1 4th gen ipod touch, 3.1.2 3g iphone

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:51.000+0000", "updated": "2011-04-15T03:04:51.000+0000" }, { "id": "126914", "author": { "name": "ziggamon", "key": "ziggamon", "displayName": "ziggamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Running Ti.Geolocation.restart() actually stops all execution of\nthe app - nothing more is run after that. Tested on device running\n1.5.1 nightly.

\n

Basic Testcase:

\n

function updateUserPosition(e){
\nif (e.error){

\n
\nTi.Geolocation.restart();\n
\n

} }\nTitanium.Geolocation.getCurrentPosition(updateUserPosition);

{html}", "updateAuthor": { "name": "ziggamon", "key": "ziggamon", "displayName": "ziggamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:52.000+0000", "updated": "2011-04-15T03:04:52.000+0000" }, { "id": "126915", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [0aa7b139acfca905e2d47ed4d4b71760493bd840])\n[#1892] restart() was causing deadlock. \nhttps://github.com/appcelerator/titanium_mobile/commit/0aa7b139acfc...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:52.000+0000", "updated": "2011-04-15T03:04:52.000+0000" }, { "id": "126916", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [aac216b9ebad433e12df036886b052cec2e8b985])\n[#1892] Whoops, forgot to change the alloc. Note\nthat as of 4.2 (at least) restart() does not perform the expected\nask-again because it's now codified in HIG that CL only asks once.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/aac216b9ebad...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:04:52.000+0000", "updated": "2011-04-15T03:04:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }