Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6088] Android Ti.Geolocation.locationServicesEnabled

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2019-01-15T16:47:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterEmmanuel Francis
AssigneeShak Hossain
Created2019-01-03T09:37:53.000+0000
Updated2019-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

Comments

  1. Aminul Islam 2019-01-04

    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:
       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);
       	}
       }
       
       
    *Success Log:* [INFO] : Permission::true*** Toggle::true Test Environment:
       Operating 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.GA
       
    Thanks
  2. Aminul Islam 2019-01-08

    Hello [~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.
  3. Emmanuel Francis 2019-01-10

    Thanks, haven't got a chance to verify this, will check this very soon.
  4. Emmanuel Francis 2019-01-15

    Yes, it's working with 7.5.0 for me too now.

JSON Source