{ "id": "175491", "key": "AC-6596", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-08-29T14:57:39.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-09-03T11:20:00.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "14550", "name": "Appcelerator Modules", "description": "Please enter tickets related to Modules here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nI am facing issue in some devices only is related to getting user current location.\r\n\r\nIn these devices Ti.Geolocation.locationServicesEnabled is value is false. So we have to manually enable the 'GPS' service.Have any option to automatically enabling the 'GPS'.\r\nLike Android LocationRequest manager.", "attachment": [ { "id": "67510", "filename": "location.jpeg", "author": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "created": "2020-08-29T14:53:33.000+0000", "size": 59898, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Any option to enable GPS automatically", "creator": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "subtasks": [], "reporter": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "environment": "\r\n\r\nTitanium SDK 9.0\r\nAppc -v 8.0\r\n\r\n\r\n", "comment": { "comments": [ { "id": "456661", "author": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "body": "Any updates!", "updateAuthor": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "created": "2020-08-31T17:02:32.000+0000", "updated": "2020-08-31T17:02:32.000+0000" }, { "id": "456681", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "I assume you mean iOS? No, that is not possible (even natively) due to system privacy restrictions. But if it is disabled, you can show an alert to open the system settings and then link them to the settings using:\r\n{code:js}\r\nvar settingsURL = Ti.App.iOS.applicationOpenSettingsURL;\r\nif (Ti.Platform.canOpenURL(settingsURL)) {\r\n Ti.Platform.openURL(settingsURL);\r\n}\r\n{code}\r\nSee the [docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App.iOS-property-applicationOpenSettingsURL] for details.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-09-01T16:28:16.000+0000", "updated": "2020-09-01T16:28:16.000+0000" }, { "id": "456699", "author": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "body": "\r\n\r\nNo. it's in android.\r\n\r\nFacing the issue in some devices ( HTC - android 9 OS ) only.\r\n\r\nIn my code, i ensure that Ti.Geolocation.hasLocationPermissions/Ti.Geolocation.requestLocationPermissions\r\nafter that Ti.Geolocation.locationServicesEnabled return false. So we need to manualy enable GPS service.\r\n\r\nSo looking functionalities of LocationSettingsRequest.Builder in android native \r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "praveeav@gmail.com", "key": "praveeav@gmail.com", "displayName": "Praveen Kumar", "active": true, "timeZone": "Indian/Maldives" }, "created": "2020-09-03T05:42:11.000+0000", "updated": "2020-09-03T05:42:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }