TitanUp icon indicating copy to clipboard operation
TitanUp copied to clipboard

NSLocationUsageDescription need to update

Open srikpunu opened this issue 10 years ago • 2 comments

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

srikpunu avatar Feb 18 '15 00:02 srikpunu

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

jpriebe avatar Feb 23 '15 20:02 jpriebe

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.

jpriebe avatar Feb 26 '15 18:02 jpriebe