{ "id": "170444", "key": "TIMOB-25558", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-11-29T18:37:42.000+0000", "created": "2017-11-23T17:01:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56188", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "159258", "key": "TIMOB-23135", "fields": { "summary": "Android: \"locationServicesEnabled\" returns false when available on device", "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": null, "updated": "2018-08-06T17:41:13.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": "Hello All,\r\nI'm always getting false with the use of Ti.Geolocation.locationServicesEnabled on android.\r\nTested this on Android device with os version 6 & 7.\r\nTurning Location services on or off returns same value.\r\n\r\nSteps i was performing to get location:\r\n1) checking for location permission using hasLocationPermissions() — This works perfect\r\n2) Check whether location service is On/Off using Ti.Geolocation.locationServicesEnabled – Returns false always.\r\n\r\nI'm using Titanium SDK: 6.3.0\r\n\r\nAny help would be appreciated.\r\n\r\n\r\nThanks.", "attachment": [ { "id": "63685", "filename": "index.js", "author": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "created": "2017-11-24T04:59:57.000+0000", "size": 573, "mimeType": "text/javascript" }, { "id": "63684", "filename": "index.xml", "author": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "created": "2017-11-24T04:59:56.000+0000", "size": 181, "mimeType": "text/xml" } ], "flagged": false, "summary": "Ti.Geolocation.locationServicesEnabled still returns false in Android.", "creator": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "subtasks": [], "reporter": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "environment": "Titanium SDK: 6.3.0\r\nAndroid", "closedSprints": [ { "id": 975, "state": "closed", "name": "2017 Sprint 24 SDK", "startDate": "2017-11-19T18:59:24.352Z", "endDate": "2017-12-03T18:59:00.000Z", "completeDate": "2017-12-04T23:20:14.151Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "431229", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Send a full reproducible code for us to test. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-23T22:22:16.000+0000", "updated": "2017-11-23T22:22:16.000+0000" }, { "id": "431232", "author": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "body": "Hi,\r\nI've added the test code.\r\nPls. chk it once, also i've added the permissions necessary for location services in Manifest file.\r\n\r\nThanks.", "updateAuthor": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "created": "2017-11-24T05:02:27.000+0000", "updated": "2017-11-24T05:02:27.000+0000" }, { "id": "431244", "author": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "body": "Hi All,\r\n\r\nGuys any progress on this ticket?\r\nNeed your help for solving this issue.\r\n\r\nThanks.", "updateAuthor": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "created": "2017-11-25T07:25:31.000+0000", "updated": "2017-11-25T07:25:31.000+0000" }, { "id": "431274", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Did you provide runtime permission for location service? ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-26T20:51:55.000+0000", "updated": "2017-11-26T20:51:55.000+0000" }, { "id": "431280", "author": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "body": "Hello,\r\n\r\nI've used following code for getting runtime permission.\r\n\r\n{code:java}\r\n\r\nif(Ti.Geolocation.hasLocationPermissions()){\r\n// if permission is true --> check for location toggle true/false using Ti.Geolocation.locationServicesEnabled\r\n}else{\r\n// if permission is false --> request for permission using Ti.Geolocation.requestLocationPermissions()\r\nTi.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e){\r\n\r\n});\r\n}\r\n{code}\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "Suraj Datta", "key": "suraj datta", "displayName": "Suraj Datta", "active": true, "timeZone": "Indian/Mahe" }, "created": "2017-11-27T05:43:35.000+0000", "updated": "2017-11-27T05:45:30.000+0000" }, { "id": "431469", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-23135", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-29T18:37:42.000+0000", "updated": "2017-11-29T18:37:42.000+0000" }, { "id": "440027", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as a duplicate. If this is in error, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:41:13.000+0000", "updated": "2018-08-06T17:41:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }