Update location permission request

We don't need the "always" permission.
This commit is contained in:
Matthew Wild 2021-09-03 17:51:12 +01:00
parent ce4d658044
commit 0f43083fdd
2 changed files with 2 additions and 5 deletions

View file

@ -50,6 +50,8 @@
</dict>
<key>NSCameraUsageDescription</key>
<string>Uses camera to capture photo for avatar and for VoIP calls</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Allows you to share your location with others</string>
<key>NSMicrophoneUsageDescription</key>
<string>Uses microphone for VoIP calls</string>
<key>NSPhotoLibraryAddUsageDescription</key>
@ -85,10 +87,6 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
</array>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Snikket would like to know your location.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Snikket would like to always know your location.</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>

View file

@ -119,7 +119,6 @@ class SendLocationViewController: UIViewController {
}
func showCurrentLocationPin() {
self.locationManager.requestAlwaysAuthorization()
self.locationManager.requestWhenInUseAuthorization()
self.mapView.showsUserLocation = true
self.mapView.delegate = self