{ "id": "175681", "key": "AC-6623", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2020-10-29T14:59:22.000+0000", "created": "2020-10-29T11:03:16.000+0000", "labels": [ "9.2.1.GA", "bug", "gps", "location", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-29T14:59:22.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "SDK 9.2.1.GA Ti.Geolocation.requestLocationPermissions callback not called on both iOS and Android\r\nSDK 9.2.0.GA on iOS works fine.\r\nAndroid callback don't works form many sdk versions. \r\n\r\n{code:java}\r\nTi.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE, function(e) {\r\n Ti.API.info(\"requestLocationPermissions callback\");\r\n \r\n if (e.success) {\r\n Ti.API.info(\"success\");\r\n } \r\n });\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "SDK 9.2.1.GA Ti.Geolocation.requestLocationPermissions callback not called", "creator": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "environment": null, "comment": { "comments": [ { "id": "457391", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Request of permissions was in the main script (not alloy style) of window generation. Now I removed it from there and inserted into focus event’s window and now it works on IOS and Android too. Probably it was my mistake but something is changed switching from 9.2.0 to 9.2.1 SDK for iOS.\r\nOn android instead it didn’t work even with 9.2.0 and earlier and I hadn’t noticed it.", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2020-10-29T14:54:24.000+0000", "updated": "2020-10-29T14:54:24.000+0000" }, { "id": "457392", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "To clarify for future visitors of this ticket: you need to call request for permissions AFTER you've opened your first window.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-10-29T14:59:14.000+0000", "updated": "2020-10-29T14:59:14.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }