{ "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.
(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...
1.4.2.4c5cd4a 4.1 4th gen ipod touch, 3.1.2 3g iphone
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.
\nBasic Testcase:
\nfunction updateUserPosition(e){
\nif (e.error){
\nTi.Geolocation.restart();
\n
\n} }\nTitanium.Geolocation.getCurrentPosition(updateUserPosition);
(from [0aa7b139acfca905e2d47ed4d4b71760493bd840])\n[#1892] restart() was causing deadlock. \nhttps://github.com/appcelerator/titanium_mobile/commit/0aa7b139acfc...
(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...