-
Notifications
You must be signed in to change notification settings - Fork 301
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
Issue in saving image when "iCloud Photo Library" is "ON" in settings in iOS 11 #88
Comments
Sorry The image is getting saved in the device, but still i am getting "Retrieved asset is nil" in error callback I actually do not need the item back after saving the image to gallery, so can i safely ignore this error? |
I am seeing the same issue with iOS 11. |
Same here with iOS 11, disabled iCloud Photo Library and it works know |
Also seeing this. |
I'm having this issue as well, and will do my best to be able to resolve it (even if I'm not very good at native development) 😅 This actually worked fine while iOS 11.0 was in beta (and maybe even the GM, but I'm not quite sure about that). I will have a look if there was any changes made to the Gallery API during the beta phase. |
Could it be a race condition somewhere? Because sometimes it works. |
@nharrer did you find any solution? |
@mubasshir no, unfortunately not. Thankfully it's not a complete show stopper, since the pictures show up in "All Photos". And I can also confirm that it starts working once iCloud Photo Library is turned off (which is not an option for my customers though). |
I guess I will hardcode and display success message if this particular error occurs |
Hey guys, thanks! |
The issue is discussed here: https://stackoverflow.com/questions/26480526/alassetslibrary-assetforurl-always-returning-nil-for-photos-in-my-photo-stream The comment by Thomas Hilbert seems to explain the bug in the plugin:
I tried his solution and added a This fix is not very clean: I doubt calling sleep() is a good practice, and the 1 second delay will probably be too much or too little depending on the context. |
Issue is still present :( |
i make a pull request to resove this issue, see #141 |
Getting "Retrieved asset is nil" in failure callback when i am trying to save a image when "iCloud Photo Library" setting is turned ON . When i turn off the setting i am unable to save the image well.
The plugin was working really well till iOS 10.3 . Please suggest if i need to do any changes for "iCloud Photo Library"
The text was updated successfully, but these errors were encountered: