[AC-6088] Android Ti.Geolocation.locationServicesEnabled
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Resolved |
| Resolution | Done |
| Resolution Date | 2019-01-15T16:47:47.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Emmanuel Francis |
| Assignee | Shak Hossain |
| Created | 2019-01-03T09:37:53.000+0000 |
| Updated | 2019-01-15T16:47:47.000+0000 |
Description
For android Ti.Geolocation.locationServicesEnabled always return false.
I tried with 7.1.1GA and 7.5.0.GA on android 6.0.1
Hello! Thanks for reaching out! We have tested this issue with latest sdk 7.5.0.GA on android, so far we have been unable to reproduce this issue. Ti.Geolocation.locationServicesEnabled return true when location services is on. Test Code:
*Success Log:* [INFO] : Permission::true*** Toggle::true Test Environment:function doClick(e) { geoLocation(); } $.index.open(); function geoLocation() { try { if (Ti.Geolocation.hasLocationPermissions()) { // if permission is true check for location toggle console.log("Permission::" + Ti.Geolocation.hasLocationPermissions() + "*** Toggle::" + Ti.Geolocation.locationServicesEnabled); } else { console.log("Else Permission::" + Ti.Geolocation.hasLocationPermissions() + "*** Toggle::" + Ti.Geolocation.locationServicesEnabled); } } catch (ex) { console.log(ex); } }ThanksOperating System Name = Microsoft Windows 10 Pro Version = 10.0.17134 Architecture = 32bit # CPUs = 4 Memory = 17091956736 Node.js Node.js Version = 8.9.1 npm Version = 5.5.1 Titanium CLI CLI Version = 5.1.1 Titanium SDK SDK Version = 7.5.0.GAHello [~efrancis], Hope you had a chance to review our last reply. Please let us know what else you need on this. There are no identifiable action item for us on this issue.
Thanks, haven't got a chance to verify this, will check this very soon.
Yes, it's working with 7.5.0 for me too now.