All devices are OK, the permission request for location usage (independent of iOS 7 or iOS 8) appears. Only the iPhone 5 does not appear.
Permission request code:
var versionString = UIDevice.currentDevice().systemVersion.stringByReplacingOccurrencesOfString(".", withString: "", options: NSStringCompareOptions.CaseInsensitiveSearch, range: nil) as NSString
if versionString.floatValue >= 800 {
if CLLocationManager.authorizationStatus() != CLAuthorizationStatus.Authorized && CLLocationManager.authorizationStatus() != CLAuthorizationStatus.AuthorizedWhenInUse {
if CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Denied {
NSLog("Not Accepted")
} else {
locationManager.requestAlwaysAuthorization()
}
}
} else {
if CLLocationManager.authorizationStatus() == CLAuthorizationStatus.Denied {
NSLog("Not Accepted")
} else {
locationManager.startUpdatingLocation()
locationManager.stopUpdatingLocation()
}
}
I declare the key NSLocationAlwaysUsageDescription "We need your location"