mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Remove location permission request, since liblinphone no longer needs to read the wifi SSID.
This commit is contained in:
parent
8face6c0ca
commit
dccab97503
1 changed files with 2 additions and 16 deletions
|
|
@ -264,22 +264,8 @@
|
|||
//init logs asap
|
||||
[Log enableLogs:[[LinphoneManager instance] lpConfigIntForKey:@"debugenable_preference"]];
|
||||
|
||||
//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, *)) {
|
||||
CLAuthorizationStatus status = [CLLocationManager authorizationStatus];
|
||||
switch(status) {
|
||||
case kCLAuthorizationStatusDenied:
|
||||
case kCLAuthorizationStatusRestricted:
|
||||
case kCLAuthorizationStatusNotDetermined:
|
||||
locationManager = [[CLLocationManager alloc]init];
|
||||
locationManager.delegate = self;
|
||||
[locationManager requestWhenInUseAuthorization];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ([PHPhotoLibrary authorizationStatus] != PHAuthorizationStatusAuthorized) {
|
||||
[PHPhotoLibrary requestAuthorization:^(PHAuthorizationStatus status) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue