Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Location services not authorized" error #34

Open
avines002 opened this issue Mar 26, 2015 · 3 comments
Open

"Location services not authorized" error #34

avines002 opened this issue Mar 26, 2015 · 3 comments

Comments

@avines002
Copy link

hello,

I must be missing something obvious. I'm trying to run the sample code to look for a beacon, but I just keep receiving the error Location services not authorized. shouldn't the user be prompted with an alert to authorize location services? Do i need to add something to my TiApp.xml file?

@h3r2on
Copy link

h3r2on commented Mar 31, 2015

this is not in the docs as of yet that I'm aware but this will fix it for you.

Ti.Geolocation.requestAuthorization(Ti.Geolocation.AUTHORIZATION_ALWAYS);

where AUTHORIZATION_ALWAYS is whichever auth your app needs. I found it the hard way...

@avines002
Copy link
Author

This is working, thank you! is there some kind of callback that can be used to determine which option the user chose? Or at least catch the error to notify the user they need to turn it on or prompt again?

@h3r2on
Copy link

h3r2on commented Apr 21, 2015

no this is a setting you set in your app see the docs: http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Geolocation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants