question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't select iCloud images

See original GitHub issue

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   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wbancercommented, Oct 15, 2017

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 πŸ˜ƒ

0reactions
foxtedcommented, Nov 5, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found