jpriebe / TitanUp

The TitanUp library for Titanium Mobile development
Other
46 stars 17 forks source link

NSLocationUsageDescription need to update #4

Open srikpunu opened 9 years ago

srikpunu commented 9 years ago

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 commented 9 years ago

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

jpriebe commented 9 years ago

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.