forked from mirrors/linphone-iphone
fix words
This commit is contained in:
parent
a2321eb739
commit
37a34b41e0
2 changed files with 4 additions and 5 deletions
|
|
@ -250,17 +250,16 @@
|
|||
|
||||
//Starting with iOS 13, the CNCopyCurrentNetworkInfo API will no longer return valid Wi-Fi SSID and BSSID information.
|
||||
//Use the CoreLocation API to request the user’s consent to access location information.
|
||||
if (@available(iOS 13.0, *)) {
|
||||
if (@available(iOS 13.0, *)) {
|
||||
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
|
||||
switch(status) {
|
||||
case kCLAuthorizationStatusDenied:
|
||||
case kCLAuthorizationStatusRestricted:
|
||||
case kCLAuthorizationStatusNotDetermined:
|
||||
locationManager = [[CLLocationManager alloc]init];
|
||||
locationManager.delegate = self;
|
||||
[locationManager requestWhenInUseAuthorization];
|
||||
break;
|
||||
case kCLAuthorizationStatusRestricted:
|
||||
case kCLAuthorizationStatusDenied:
|
||||
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Warning", nil) message:NSLocalizedString(@"Location Authorization is Denied or RestricTed.", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil, nil] show];
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@
|
|||
<key>NSContactsUsageDescription</key>
|
||||
<string>Make calls with your friends</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>Your location will used to detect the change of wifi</string>
|
||||
<string>Linphone will not use, store or communicate your location. The authorization allows us to detect Wifi connection changes</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Use microphone to make audio calls</string>
|
||||
<key>NSPhotoLibraryAddUsageDescription</key>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue