{ "id": "153233", "key": "TIMOB-20002", "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": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-04T20:24:05.000+0000", "created": "2015-11-17T11:10:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "geolocation" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [ { "id": "50250", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "154198", "key": "TIMOB-20217", "fields": { "summary": "iOS: Ti.Geolocation.hasGeolocationPermission() and Ti.Geolocation.getCurrentPosition() are not working on IOS 7", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "50124", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "153863", "key": "TIMOB-20149", "fields": { "summary": "iOS Ti.Geolocation.requestLocationPermissions callback is not working", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "49874", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "153238", "key": "TIMOB-20004", "fields": { "summary": "iOS: Differences between new permission request responses", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-08T15:07: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": "Both on device and in Simulator I can't get the callback for {{requestLocationPermissions}} in the following code to be called, even though - the first time - the dialog requesting permission *is* displayed. Which is weird, because in the [Ti 5.1.0 Sample App|https://github.com/appcelerator-developer-relations/appc-sample-ti510] it does call and is implemented in the exact same way. Removing everything in the button event listener except the request call doesn't change it either.\r\n\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'Request Permissions'\r\n});\r\n \r\nbtn.addEventListener('click', function(e) {\r\n \r\n\tTi.API.info('Before Callback');\r\n\r\n\tTi.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {\r\n\r\n\t\tTi.API.info('In Callback');\r\n\r\n\t\tTi.API.info(JSON.stringify(e, null, 2));\r\n\t});\r\n \r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n\r\n*Notes:*\r\n\r\n* Don't forget to add {{NSLocationAlwaysUsageDescriptionDeny or grant permission to test different scenarios.}} to the {{tiapp.xml}} or use the attached project.\r\n* For a clean slate either change the app id, reset the Simulator or just _Settings > General > Reset > Reset Location & Privacy_.", "attachment": [ { "id": "57528", "filename": "requestdenied.zip", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-17T17:58:15.000+0000", "size": 10294306, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Ti.Geolocation.requestLocationPermissions is not always called?", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.1.0.v20151116104422\r\niOS Simulator 9.1 (13B137)\r\niPhone 6S running same iOS version", "closedSprints": [ { "id": 529, "state": "closed", "name": "2015 Sprint 24 SDK", "startDate": "2015-11-21T01:30:12.670Z", "endDate": "2015-12-05T01:30:00.000Z", "completeDate": "2015-12-07T03:57:17.094Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "370515", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Attached sample project.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-17T11:11:25.000+0000", "updated": "2015-11-17T11:11:25.000+0000" }, { "id": "370540", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Simplified test case in description and attached new project with that code.\r\n\r\nI've used the latest 5_1_X now (5.1.0.v20151116164430) and reset the Simulator and deleted {{build}} but still the same:\r\n\r\n{code}\r\n[DEBUG] Application booted in 210.619986 ms\r\n[INFO] Before Callback\r\n{code}", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-17T17:59:24.000+0000", "updated": "2015-11-17T17:59:24.000+0000" }, { "id": "370567", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Using code above, and with SDK 5.1.0.v20151116164430, I never get \"In Callback\" when I choose either approve or deny the request for permission.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-17T20:09:44.000+0000", "updated": "2015-11-17T20:09:44.000+0000" }, { "id": "370570", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~emerriman] thanks for confirming I'm not crazy\r\n[~cng] I'm afraid this is a blocker :(", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-17T20:41:15.000+0000", "updated": "2015-11-17T20:41:15.000+0000" }, { "id": "370574", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/7460\r\nPR (5_1_X): https://github.com/appcelerator/titanium_mobile/pull/7461\r\n\r\nSummary: This issue is related to a bad practice (not checking already granted permissions). Anyway, this PR fixes that use-case.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-17T21:05:39.000+0000", "updated": "2015-11-17T21:05:39.000+0000" }, { "id": "370576", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Correct on that summary: Without this fix I can reproduce it with a clean build on a reset Simulator with a changed App ID as well so it's not related to a bad practice. More likely is it a result of the 3rd bullet of TIMOB-20004 where an empty string error message triggered the {{errorMessage != nul}} condition:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/7461/files#diff-d8125f3a683a79e2b840cb8359e9d474L890", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-11-17T21:10:00.000+0000", "updated": "2015-11-17T21:11:47.000+0000" }, { "id": "370581", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Also covers the issues in TIMOB-20004, is the backport needed? Feels more like a 5.1.1 or 5.2.0 fix.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-17T21:36:44.000+0000", "updated": "2015-11-17T21:36:44.000+0000" }, { "id": "370618", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "we'll keep the back port for 5.1.1. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-18T01:13:51.000+0000", "updated": "2015-11-18T01:13:51.000+0000" }, { "id": "371083", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs approved and merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-23T02:02:42.000+0000", "updated": "2015-11-23T02:02:42.000+0000" }, { "id": "371208", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Imported the attached sample app and built with SDK {{5.1.1.v20151122191220}}. Received the following in the console when {{requestLocationPermissions}} is called:\r\n{code:java}\r\n[INFO] : Before Callback\r\n[INFO] : In Callback\r\n[INFO] : {\r\n[INFO] : \"success\": true,\r\n[INFO] : \"code\": 0\r\n[INFO] : }\r\n{code}\r\n\r\nTested on:\r\nDevices: iPhones 6S+ (9.1) \r\nSimulators: (9.1) & (8.4) \r\nMac OSX El Capitan 10.11 (15A284)\r\nTi SDK: 5.1.1.v20151122191220\r\nAppc Studio: 4.4.0.201511182122\r\nAppc NPM: 4.2.2\r\nAppc CLI: 5.1.0-60\r\nAlloy: 1.7.26\r\nXcode 7.1(7B91b)\r\nNode v0.12.7\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-11-23T19:44:08.000+0000", "updated": "2015-11-23T19:44:08.000+0000" }, { "id": "371513", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "To Note: This ticket is marked 5.1.2 but PR was merged in 5.1.1GA", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-26T03:51:12.000+0000", "updated": "2015-11-26T03:51:12.000+0000" }, { "id": "371778", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~fokkezb] Just a quick rehash of this issue - it is happening when the permission is either allowed/denied before and then presenting requestLocationPermissions ?", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-01T13:55:40.000+0000", "updated": "2015-12-01T13:55:40.000+0000" }, { "id": "371867", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "When callback is nullified here https://github.com/hansemannn/titanium_mobile/blob/463fde3094356ae366a0ecd3e749779c1444c3f0/iphone/Classes/GeolocationModule.m#L890\r\n\r\nThe actual result of user approved/denied is never called because of condition here \r\nhttps://github.com/hansemannn/titanium_mobile/blob/463fde3094356ae366a0ecd3e749779c1444c3f0/iphone/Classes/GeolocationModule.m#L1080\r\n\r\nReopening the ticket. ", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-02T05:16:55.000+0000", "updated": "2015-12-02T05:16:55.000+0000" }, { "id": "371872", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/7526\r\n5_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/7527\r\n\r\nAdditional test cases \r\nCase 1: Clear privacy settings. \r\nShows permission alert and invokes callback *after* user acted on the alert. \r\n\r\nCase 2: Permission is either approved or denied earlier.\r\nInvokes callback. Permission alert is *not* shown.\r\n", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-02T05:59:50.000+0000", "updated": "2015-12-02T06:01:03.000+0000" }, { "id": "371878", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT Passed. APPROVED!\r\n[~fokkezb] can you have a look as well before i merge? thanks!", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-02T07:17:38.000+0000", "updated": "2015-12-02T07:17:38.000+0000" }, { "id": "371915", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-02T14:04:25.000+0000", "updated": "2015-12-02T14:04:25.000+0000" }, { "id": "371959", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "[~ssombhatla] Testing your PR for release 5.1.2 :\r\n\r\nCase 1: Privacy settings are clear, upon clicking {{Request Permissions}} , {{Before Callback}} is returned, and I am prompted to Allow or Deny Location Permissions. After selecting either, {{In Callback}} is not returned. \r\n\r\nCase 2: With Permissions now Denied or Approved, clicking {{Request Permissions}} returns the following: \r\n{code:java}\r\n[DEBUG] : User already approved access to location services.\r\n[INFO] : In Callback\r\n[INFO] : {\r\n[INFO] : \"success\": true,\r\n[INFO] : \"code\": 0\r\n[INFO] : }\r\n{code}\r\nPermission alert is not shown in this case. \r\n\r\nTo clarify, is the expected result for *Case 1* as described above? or should the user receive the {{In Callback}} after denying / approving permission request?\r\n\r\nTested with:\r\niPhone 6s Plus Device (9.1) & Simulator (9.1), (8.4)\r\nMac OSX El Capitan 10.11 (15A284)\r\nStudio: 4.4.0.201511241829\r\nTi SDK: 5.1.2.v20151202061227\r\nAppc NPM: 4.2.2\r\nApp CLI: 5.1.0\r\nXcode 7.1(7B91b)\r\nNode v4.2.2\r\nproduction\r\n\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-02T21:35:18.000+0000", "updated": "2015-12-02T21:35:18.000+0000" }, { "id": "371981", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "in Case 1, In callback should be returned. I'll check this again later.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-03T00:36:15.000+0000", "updated": "2015-12-03T00:36:15.000+0000" }, { "id": "371989", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~htbryant] Sorry i was confused. in case 1, the callback will not be returned and that's the expected behavior. It's the same in 5.1.1.GA.\r\n", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-03T02:24:09.000+0000", "updated": "2015-12-03T02:24:09.000+0000" }, { "id": "372041", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Now I'm confused [~cng], because case 1 was exactly why I created this ticket. The callback should be returned at all times.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-03T09:58:23.000+0000", "updated": "2015-12-03T09:58:23.000+0000" }, { "id": "372057", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "Issue seems to be with not running on main thread which I was unable to emulated when running in Xcode. This PR should address the issue.\r\n\r\nPR master: https://github.com/appcelerator/titanium_mobile/pull/7539\r\nPR 5_1_X: https://github.com/appcelerator/titanium_mobile/pull/7540", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-12-03T15:20:52.000+0000", "updated": "2015-12-03T15:20:52.000+0000" }, { "id": "372094", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "New PR: (Master) https://github.com/appcelerator/titanium_mobile/pull/7541. \r\nNew PR :(5_1_X) : https://github.com/appcelerator/titanium_mobile/pull/7542\r\nThis will fix the issue where the callback will be called before the user grants/deny's permissions , the call back will now also display success if the user grants permission.", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-03T20:56:08.000+0000", "updated": "2015-12-03T21:09:34.000+0000" }, { "id": "372323", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, tested the sample code with sdk build {{5.1.2.v20151206185250}} and following callbacks are received:\r\n\r\nCase 1: Permissions Granted\r\n{code:java}\r\n[INFO] : Before Callback\r\n[INFO] : In Callback\r\n[INFO] : {\r\n[INFO] : \"success\": true,\r\n[INFO] : \"authorizationStatus\": 3,\r\n[INFO] : \"code\": 0\r\n[INFO] : }\r\n{code}\r\n\r\nCase 2: Permissions Denied\r\n{code:java}\r\n[INFO] : Before Callback\r\n[INFO] : In Callback\r\n[INFO] : {\r\n[INFO] : \"success\": false,\r\n[INFO] : \"code\": 1,\r\n[INFO] : \"authorizationStatus\": 2,\r\n[INFO] : \"error\": \"The user denied access to use location services.\"\r\n[INFO] : }\r\n{code}\r\n\r\n{{Before Callback}} is returned once clicking \"Request Permissions\", and {{In Callback}} is returned after setting either Allow, or Don't Allow.\r\n\r\nTested on:\r\niPhone 6s Plus Device (9.1) & Simulators (9.1) , (8.4)\r\nMac OSX El Capitan 10.11 (15A284)\r\nStudio: 4.4.0.201511241829\r\nTi SDK: 5.1.2.v20151206185250\r\nAppc NPM: 4.2.2\r\nApp CLI: 5.1.0\r\nXcode 7.1(7B91b)\r\nNode v4.2.2\r\nproduction\r\n\r\n*Closing ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2015-12-07T18:36:36.000+0000", "updated": "2015-12-07T18:36:36.000+0000" }, { "id": "373667", "author": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "body": "Callback is being invoked but on the wrong thread. Pull request discussion (https://github.com/appcelerator/titanium_mobile/pull/7597).", "updateAuthor": { "name": "CollinPrice", "key": "collinprice", "displayName": "Collin Price", "active": true, "timeZone": "America/Toronto" }, "created": "2015-12-31T16:01:10.000+0000", "updated": "2015-12-31T16:01:10.000+0000" }, { "id": "374933", "author": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "body": "still facing this problem occasionally on SDK 5.1.2", "updateAuthor": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2016-01-20T13:16:19.000+0000", "updated": "2016-01-20T13:16:19.000+0000" }, { "id": "374985", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello , are you able to reproduce the issue using the code presented above or your own ? If you are using your own could you please post it here and the steps required to reproduce it. Thank you! If the issue persists we'll re-evaluate the fix. Thank you! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-20T20:20:10.000+0000", "updated": "2016-01-20T20:20:10.000+0000" }, { "id": "375036", "author": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "body": "can't find a way to reproduce so far, once I find it will update here, thanks", "updateAuthor": { "name": "wilsonliaw", "key": "wilsonliaw", "displayName": "Wilson Liaw", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2016-01-21T02:48:03.000+0000", "updated": "2016-01-21T02:48:03.000+0000" }, { "id": "375065", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I've also seen it with 5.1.2.GA, where I was using it as a fallback in a timeout after monitoring for location changes (which don't fire if the user is not moving apparently). Could that be related since under the hood this method uses the same listener?\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/GeolocationModule.m#L580", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-01-21T10:28:13.000+0000", "updated": "2016-01-21T10:28:13.000+0000" }, { "id": "376229", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have this problem pretty consistently for Android 6.0 - and it also seems to work in the Ti 5.1.0 demo app... :-/\r\n\r\nI first load the map and then call a function to verify the permissions - and parse a callback function to set the position if user has permission - or gives it (in which case it fails)", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T14:21:18.000+0000", "updated": "2016-02-08T14:21:18.000+0000" }, { "id": "376232", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jda] This ticket is iOS related and fixed in 5.2.x, I think there is another one android-related, [~fokkezb] will be able to assist.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T14:25:54.000+0000", "updated": "2016-02-08T14:25:54.000+0000" }, { "id": "376234", "author": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, thanks Hans :-)", "updateAuthor": { "name": "jda", "key": "jda", "displayName": "John Dalsgaard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-02-08T15:07:15.000+0000", "updated": "2016-02-08T15:07:15.000+0000" } ], "maxResults": 31, "total": 31, "startAt": 0 } } }