Geolocalização - watter/titanium GitHub Wiki
Existem 3 tipos de serviços de localização no Android
- gps –> (GPS, AGPS) Name of the GPS location provider. This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix. Requires the permission android.permission.ACCESS_FINE_LOCATION.
- network –> (AGPS, CellID, WiFi MACID) Name of the network location provider. This provider determines location based on availability of cell tower and WiFi access points. Results are retrieved by means of a network lookup. Requires either of the permissions android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.
- passive –> (CellID, WiFi MACID) A special location provider for receiving locations without actually initiating a location fix. This provider can be used to passively receive location updates when other applications or services request them without actually requesting the locations yourself. This provider will return locations generated by other providers. Requires the permission android.permission.ACCESS_FINE_LOCATION, although if the GPS is not enabled this provider might only return coarse fixes.
Mesmo que o serviço de GPS ou Network estejam desabilitados, o acesso à localização sempre será permitido através do serviço "passive".
Portanto, como descrito na documentação da propriedade Ti.Geolocation.locationServicesEnabled:
On Android OS 2.2 and above, there is a new, "passive" location provider that is enabled at all times, even when the user disables both the GPS and Network location providers. Therefore, this method always returns true on these devices.