Forráskód Böngészése

ask for location permission

cyberta 5 éve
szülő
commit
dcede66084
2 módosított fájl, 6 hozzáadás és 0 törlés
  1. 4 0
      deltachat-ios/Info.plist
  2. 2 0
      deltachat-ios/en.lproj/InfoPlist.strings

+ 4 - 0
deltachat-ios/Info.plist

@@ -40,6 +40,10 @@
 	<true/>
 	<key>NSCameraUsageDescription</key>
 	<string>Delta Chat uses your camera to take and send photos and videos and to scan QR codes.</string>
+	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
+	<string>Delta Chat needs the location permission in order to share your location for the timespan you have enabled location sharing.</string>
+	<key>NSLocationWhenInUseUsageDescription</key>
+	<string>Delta Chat needs the location permission in order to share your location for the timespan you have enabled location sharing.</string>
 	<key>NSContactsUsageDescription</key>
 	<string>Delta Chat uses your contacts to show a list of email addresses you can write to. Delta Chat has no server, your contacts are not sent anywhere.</string>
 	<key>NSMicrophoneUsageDescription</key>

+ 2 - 0
deltachat-ios/en.lproj/InfoPlist.strings

@@ -2,3 +2,5 @@ NSCameraUsageDescription = "Delta Chat uses your camera to take and send photos
 NSContactsUsageDescription = "Delta Chat uses your contacts to show a list of email addresses you can write to. Delta Chat has no server, your contacts are not sent anywhere.";
 NSMicrophoneUsageDescription = "Delta Chat uses your microphone to record and send voice messages and videos with sound.";
 NSPhotoLibraryUsageDescription = "Delta Chat will let you choose which photos from your library to send.";
+NSLocationAlwaysAndWhenInUseUsageDescription = "Delta Chat needs the location permission in order to share your location for the timespan you have enabled location sharing.";
+NSLocationWhenInUseUsageDescription = "Delta Chat needs the location permission in order to share your location for the timespan you have enabled location sharing.";