Update location permission request
We don't need the "always" permission.
This commit is contained in:
parent
ce4d658044
commit
0f43083fdd
|
@ -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>
|
||||
|
|
|
@ -119,7 +119,6 @@ class SendLocationViewController: UIViewController {
|
|||
}
|
||||
|
||||
func showCurrentLocationPin() {
|
||||
self.locationManager.requestAlwaysAuthorization()
|
||||
self.locationManager.requestWhenInUseAuthorization()
|
||||
self.mapView.showsUserLocation = true
|
||||
self.mapView.delegate = self
|
||||
|
|
Loading…
Reference in a new issue