You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/22 22:53:02 UTC
[GitHub] PTRFRLL opened a new issue #414: iOS:
Camera.PictureSourceType.PHOTOLIBRARY does not prompt for permissions
PTRFRLL opened a new issue #414: iOS: Camera.PictureSourceType.PHOTOLIBRARY does not prompt for permissions
URL: https://github.com/apache/cordova-plugin-camera/issues/414
Running iOS 12.1.2. When I select the option to load from photo library for the first time, there is no prompt to allow the app access to the photo library. The app has full-access from the start.
The other photo related permissions all work, access to camera, accces to ADD to photo library, etc.
Here's the relevant code:
```js
var options = {
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.FILE_URI,
saveToPhotoAlbum: true,
correctOrientation: true
};
this.camera.getPicture(options).then(imagePath => {
//more code here...
});
```
and my config.xml file:
```xml
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>[app name] uses your photo library for leak photos</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>[app name] uses your camera to capture leaks</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSLocationAlwaysUsageDescription">
<string>[app name] uses your location to locate nearby facilities</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
<string>[app name] uses your location to locate nearby facilities</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
<string>[app name] saves leak photos you take in-app to your photo library</string>
</edit-config>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org