{ "id": "176217", "key": "TIMOB-28474", "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": "21201", "description": "", "name": "Release 10.1.0", "archived": false, "released": true, "releaseDate": "2021-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-08-31T16:30:24.000+0000", "created": "2021-06-05T03:23:44.000+0000", "epic": { "id": 176213, "key": "TIMOB-28470", "name": "Android 12: Implement Support", "summary": "Android 12: Implement Support", "color": { "key": "color_9" }, "done": false }, "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "geolocation", "gps", "location", "permission" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-08-31T16:30: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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nCurrently, our {{Ti.Geolocation.hasLocationPermissions()}} and {{Ti.Geolocation.requestLocationPermissions()}} methods only check/request for the {{ACCESS_FINE_LOCATION}} permission. We should change these APIs to also check/request for {{ACCESS_COURSE_LOCATION}} as well.\r\n\r\n*Reason:*\r\nAs of Android 12, the location permission dialog will ask the end-user for \"Precise\" or \"Approximate\" location precision as shown in the below screenshot. \r\nhttps://developer.android.com/about/versions/12/approximate-location\r\n !Android12LocationRequest.png|thumbnail! \r\n\r\nIf we only request for {{ACCESS_FINE_LOCATION}}, then the following error will be logged and the permission request will fail.\r\n{code}\r\nACCESS_FINE_LOCATION must be requested with ACCESS_COARSE_LOCATION\r\n{code}\r\n\r\n*To-Do:*\r\nUpdate location permission handling in...\r\n* [GeolocationModule.java|https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/geolocation/src/java/ti/modules/titanium/geolocation/GeolocationModule.java#L494-L539]\r\n* [TiWebChromeClient.java|https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/webview/TiWebChromeClient.java#L86-L119]\r\n\r\n*Note:*\r\nThis only impacts apps which \"target\" Android 12 (aka: API Level 31).\r\n", "attachment": [ { "id": "67932", "filename": "Android12LocationRequest.png", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-05T03:21:12.000+0000", "size": 134443, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Modify requestLocationPermissions() to also request ACCESS_COARSE_LOCATION", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458764", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12884", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-11T22:09:38.000+0000", "updated": "2021-06-11T22:09:38.000+0000" }, { "id": "459018", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-08-31T16:30:19.000+0000", "updated": "2021-08-31T16:30:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }