Can't select iCloud images
See original GitHub issueI 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 β
βββββββββββββββββββββββββββββββββββ΄ββββββββββ
Issue Analytics
- State:
- Created 6 years ago
- Comments:25 (10 by maintainers)
Top Results From Across the Web
Set up iCloud Photos on all your devices - Apple Support
Choose Users and Accounts, then select your account. Choose iCloud, then turn on iCloud Photos. Note: You can't select both iCloud Photos and...
Read more >Can't See Photos in iCloud? Solutions to Find iCloud Photos
Can't see iCloud photos? How to view iCloud photos? Read this guide to find the methods.
Read more >11 Ways to Fix iCloud Photos Not Syncing on Your Mac
Open the Photos app. Β· Select Photos > Preferences from the menu bar. Β· Switch to the iCloud tab and check the box...
Read more >How to fix the error βiCloud Photos Could Not Be Turned Onβ
To do this, uncheck the Sync Photos box in iTunes, then click Sync. After the sync is complete, restart your device and turn...
Read more >[2022] How to download photos from iCloud: 4 ways
Select each photo and tap on the cloud icon in the top right corner to download images one by one from your iCloud...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I did some digging, and for me it started to work after small update to imagepicker.ios.ts. Iβve created PR for that #121 I hope this will help π
Seems like there is a pending PR that would solve the problem on the underlying library, QBImagePicker. But that library hasnβt been updated in a few years π
https://github.com/questbeat/QBImagePicker/pull/180#ref-pullrequest-398985930