Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Why location must be enabled? #6

Closed
geolyth opened this issue Mar 14, 2015 · 1 comment
Closed

Why location must be enabled? #6

geolyth opened this issue Mar 14, 2015 · 1 comment

Comments

@geolyth
Copy link

geolyth commented Mar 14, 2015

Hi all,
I remember in previous google play services version was possible to instantiate a geofence without location enabled (only with Wi-Fi for example).

Why in this sample do not work?

I allready read "To run this sample, location must be enabled.", but in this way the battery becoming low in small time.

Thanks

@shailen
Copy link
Contributor

shailen commented Apr 6, 2015

Hi @geolyth . Sorry for the confusion: I just meant that for this sample, location must be enabled. It is not a statement about using geofences in general. Also, you might not that there is now a SettingsAPI associated with Location (I've just added a LocationSettings sample to this repo that shows how it works), and for any location work, the SettingsApi can be used to determine what is required and what isn't (and upgrade if necessary).

@shailen shailen closed this as completed Apr 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants