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

NSLocationUsageDescription need to update #4

Open
srikpunu opened this issue Feb 18, 2015 · 2 comments
Open

NSLocationUsageDescription need to update #4

srikpunu opened this issue Feb 18, 2015 · 2 comments

Comments

@srikpunu
Copy link

I know this is not a major issue. Just for your FYI.. incase if you update in the future. you can consider this.

[WARN] : The Ti.Geolocation.purpose property is deprecated. On iOS6 and above include the NSLocationUsageDescription key in your Info.plist

@jpriebe
Copy link
Owner

jpriebe commented Feb 23, 2015

Thanks -- I knew I was forgetting something about that purpose property. I'll keep this issue open until I can clean that up.

@jpriebe
Copy link
Owner

jpriebe commented Feb 26, 2015

Actually, if you look at the code (https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/GeolocationModule.m), that message is misleading. It says that you should use NSLocationUsageDescription for iOS6 and above, but it only uses the NSLocationAlwaysUsageDescription/NSLocationWhenInUseUsageDescription values when it is iOS8 or greater. For iOS6 and 7, you still need the purpose string.

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