I want to open location service screen programmatically to turn on service.
SWIFT 4 tested:
Only way to avoid getting rejected and open Location Preferences of own app is:
if let bundleId = Bundle.main.bundleIdentifier,
   let url = URL(string: "\(UIApplication.openSettingsURLString)&path=LOCATION/\(bundleId)") {
        UIApplication.shared.open(url, options: [:], completionHandler: nil)
}