{ "id": "136537", "key": "TIMOB-17688", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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-26T18:40:35.000+0000", "created": "2014-09-14T01:24:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "IOS8", "ios" ], "versions": [], "issuelinks": [ { "id": "41381", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136204", "key": "TIMOB-17638", "fields": { "summary": "iOS8: Support New Geo Permissions", "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": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-21T20:25:24.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": "With iOS8 now there is the need to request specific geo location permissions.\r\n\r\nThe PR for this method is here https://github.com/appcelerator/titanium_mobile/pull/6073\r\n\r\nHow to test this can be found here https://gist.github.com/benbahrenburg/4bcda636397cb095025f\r\n\r\nThe API for this is pretty simple\r\n{code}\r\nTi.Geolocation.requestAuthorization(Ti.Geolocation.AUTHORIZATION_ALWAYS);\r\n{code}\r\nor\r\n{code}\r\nTi.Geolocation.requestAuthorization(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE);\r\n{code}", "attachment": [ { "id": "51415", "filename": "Screen Shot 2014-09-18 at 11.15.37 AM.png", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T18:21:55.000+0000", "size": 58892, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS8: Add ability to request Geo Location Permission", "creator": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 219, "state": "closed", "name": "2014 Sprint 19 SDK", "startDate": "2014-09-18T21:06:27.559Z", "endDate": "2014-09-27T00:00:00.000Z", "completeDate": "2014-09-29T13:58:58.022Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "323528", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~penrique] FYI", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-14T03:15:07.000+0000", "updated": "2014-09-14T03:15:07.000+0000" }, { "id": "323721", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "New PR, contains Ben's work plus some minor indentation fixes: https://github.com/appcelerator/titanium_mobile/pull/6082/", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T17:59:00.000+0000", "updated": "2014-09-15T17:59:00.000+0000" }, { "id": "323803", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3.4.x https://github.com/appcelerator/titanium_mobile/pull/6086", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-15T21:46:30.000+0000", "updated": "2014-09-15T21:46:30.000+0000" }, { "id": "323860", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR pass, both PRs merged", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-16T00:59:44.000+0000", "updated": "2014-09-16T00:59:44.000+0000" }, { "id": "323873", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] Make sure to remove the merge-3.4.0 label and add the \"Release 3.4.0\" fix version (in the future).", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-16T03:29:19.000+0000", "updated": "2014-09-16T03:29:19.000+0000" }, { "id": "324553", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-18T18:21:34.000+0000", "updated": "2014-09-18T18:26:59.000+0000" }, { "id": "328122", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Seeing a problem with this when the app is backgrounded:\r\n1. App starts, dialog pops up asking \"Allow myapp to access your location while you use the app?\" (Don't Allow/Allow)\r\n2. Click screen lock or wait until it locks\r\n3. Unlock the screen\r\n4. The geolocation authorization dialog is gone, geolocation events don't fire\r\n\r\nAny ideas how to deal with this?\r\n\r\nThanks", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-10-15T00:48:28.000+0000", "updated": "2014-10-15T00:48:28.000+0000" }, { "id": "328124", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "The above comment applies to iOS 8 simulator and device. iOS 7 simulator works fine - the dialog is there after screen unlock.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-10-15T00:56:39.000+0000", "updated": "2014-10-15T00:56:39.000+0000" }, { "id": "328165", "author": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Update: this appears to be horrendous new behavior under iOS 8...... The Google Maps app also doesn't show the permission dialog after a screen lock.", "updateAuthor": { "name": "mokesmokes", "key": "mokesmokes", "displayName": "Mark Mokryn", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-10-15T13:36:05.000+0000", "updated": "2014-10-15T13:36:05.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }