Fuse 1.6.1
MacOS Sierra (pretty sure it also happens in high sierra)
When using Fuse.Cameraroll
the app tries getting the images before asking permission and fails, then it asks and the second time works great.
Please see video
Here is the code:
<App>
<JavaScript>
var CameraRoll = require("FuseJS/CameraRoll");
function cameraRoll(){
CameraRoll.getImage()
.then(function(image) {
console.log(JSON.stringify(image))
// Will be called if the user successfully selected an image.
}, function(error) {
// Will be called if the user aborted the selection or if an error occurred.
});
}
module.exports = {cameraRoll}
</JavaScript>
<StackPanel ItemSpacing="20" Alignment="Center" >
<Button Text="CameraRoll" Clicked="{cameraRoll}" />
</StackPanel>
</App>
This happens both simulator and device.
Probably not a Fuse bug, I don’t know…