[TIMOB-25558] Ti.Geolocation.locationServicesEnabled still returns false in Android.
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-11-29T18:37:42.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Suraj Datta |
Assignee | Unknown |
Created | 2017-11-23T17:01:51.000+0000 |
Updated | 2018-08-06T17:41:13.000+0000 |
Description
Hello All,
I'm always getting false with the use of Ti.Geolocation.locationServicesEnabled on android.
Tested this on Android device with os version 6 & 7.
Turning Location services on or off returns same value.
Steps i was performing to get location:
1) checking for location permission using hasLocationPermissions() — This works perfect
2) Check whether location service is On/Off using Ti.Geolocation.locationServicesEnabled – Returns false always.
I'm using Titanium SDK: 6.3.0
Any help would be appreciated.
Thanks.
Attachments
File | Date | Size |
index.js | 2017-11-24T04:59:57.000+0000 | 573 |
index.xml | 2017-11-24T04:59:56.000+0000 | 181 |
Hello, Send a full reproducible code for us to test. Thanks.
Hi, I've added the test code. Pls. chk it once, also i've added the permissions necessary for location services in Manifest file. Thanks.
Hi All, Guys any progress on this ticket? Need your help for solving this issue. Thanks.
Hello, Did you provide runtime permission for location service?
Hello, I've used following code for getting runtime permission.
Thanks.
Duplicate of TIMOB-23135
Closing as a duplicate. If this is in error, please reopen.