Open
Description
I know this has been covered before here and here but both issues are closed and the provided solution doesn't work for me.
When selecting an image stored in iCloud, .getImage()
fails with "Error: The image could not be created."
context
.authorize()
.then(function() {
return context.present();
})
.then(function(selection) {
console.log("Selection done:");
selection.forEach(function(selected) {
console.log(" - " + selected.uri);
selected.getImage().then(function(imagesource) {
console.log('selected.getImage() - success');
}).catch(function(error) {
console.log(error); // => Error: The image could not be created.
});
});
}).catch(function(e) {
console.log(e);
});
Am I doing something incorrectly?
Thanks
┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 2.5.5 │ 3.0.1 │ Update available │
│ tns-core-modules │ 2.5.2 │ 3.0.1 │ Update available │
│ tns-android │ │ 3.0.0 │ Not installed │
│ tns-ios │ 2.5.0 │ 3.0.1 │ Update available │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘
┌─────────────────────────────────┬─────────┐
│ Plugin │ Version │
│ moment │ ^2.18.1 │
│ nativescript-audio │ ^2.1.5 │
│ nativescript-background-http │ ^2.5.1 │
│ nativescript-bitmap-factory │ ^1.7.1 │
│ nativescript-carousel │ ^2.4.1 │
│ nativescript-geolocation │ 0.0.19 │
│ nativescript-google-maps-sdk │ ^1.4.3 │
│ nativescript-imagepicker │ ^2.5.2 │
│ nativescript-iqkeyboardmanager │ ^1.0.1 │
│ nativescript-permissions │ ^1.2.3 │
│ nativescript-push-notifications │ ^0.1.2 │
│ nativescript-telerik-ui │ ^1.6.2 │
│ nativescript-theme-core │ ^1.0.4 │
│ nativescript-videoplayer │ ^2.6.1 │
│ tns-core-modules │ 2.5.2 │
└─────────────────────────────────┴─────────┘