Authored by Justin R. Miller

Merge pull request #554 from thenewtricks/localized-location-key-lookup

Use localized NSLocationWhenInUseUsageDescription key for assert
... ... @@ -3321,7 +3321,7 @@
//
if ([CLLocationManager instancesRespondToSelector:@selector(requestWhenInUseAuthorization)])
{
NSAssert([[[NSBundle mainBundle] infoDictionary] valueForKey:@"NSLocationWhenInUseUsageDescription"], @"For iOS 8 and above, your app must have a value for NSLocationWhenInUseUsageDescription in its Info.plist");
NSAssert([[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSLocationWhenInUseUsageDescription"], @"For iOS 8 and above, your app must have a value for NSLocationWhenInUseUsageDescription in its Info.plist");
[_locationManager requestWhenInUseAuthorization];
}
#endif
... ...