We’re having an issue with the permissions for the cameraroll.
When selecting a image, permission is asked after selecting image and this clears the selected image.
Therefore to select a image first time users have to take the same steps twice.
Is this a bug in Fuse or is there some kind of work around this issue?
Video: To make things clear: https://youtu.be/nwrvvy3HTJ0
Minimal code to reproduce:
<App>
<JavaScript>
var cameraRoll = require("FuseJS/CameraRoll");
var Observable = require("FuseJS/Observable");
var TheImage = Observable();
module.exports = {
TheImage:TheImage,
SetImage : function() {
cameraRoll.getImage()
.then(function(image) {
TheImage.value = image;
}, function(error) {
});
}
}
</JavaScript>
<Button Text="test" Clicked="{SetImage}" />
<Image File="{TheImage}"/>
</App>
- version 1.5.0 (buid 150046)
- macOs