Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error occurs when selecting one or more images which needs to be downloaded from iCloud and there is no connectivity (to download them) #100

Open
ryaa opened this issue Dec 17, 2019 · 1 comment

Comments

@ryaa
Copy link
Contributor

ryaa commented Dec 17, 2019

This plugin uses [[PHImageManager defaultManager] requestImageDataForAsset:...] in imageToSandbox method. However this function only works for images that reside on the phones memory or that were recently fetched from iCloud by your app on any other one and if there is no connectivity this method returns nil for the image which causes the problem.

The plugin simply returns an error which is null and no other details.

For example, the camera plugin, when such a photo (which needs to be downloaded from iCloud) is selected by the user shows the below error dialog and prevents from selecting it
IMG_3399

Is it possible to implement similar behaviour?

@ryaa
Copy link
Contributor Author

ryaa commented Dec 22, 2019

I implemented the change to handle the above use case and return an error message if the photo is in iCloud and download fails - see #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant