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
iOS not Loading picture #43
Comments
Hi! It seems as if NativeGallery returns the image's path before it is written to the disk/while it is being written to the disk, but AFAIK this line ensures that image is written to the disk synchronously: https://github.com/yasirkula/UnityNativeGallery/blob/master/Plugins/NativeGallery/iOS/NativeGallery.mm#L482 Can you see any error messages in Xcode console? If you use the example code to display the selected image on a cube without using the ImageCropper plugin, does everything work properly? |
Thanks for you reply! |
Well, I've got a feedback: did all the tests and realized that there is something wrong with my logic (just couldn't figure out why it works perfect on Android and not on iOS). I'm attaching the sample bellow to see if there's something you can help with.
|
Oh, I see. You should just move |
It worked perfectly! I appreciate your work and your help! Thanks a lot! |
Hello!
First I'd like to thank you for the incredible work!
On android it works perfectly although I'm facing an issue on iOS. The first time I call my gallery method it asks for permission, opens the gallery, but does nothing after that. It looks like it doesn't catch the path on the first attempt, but on my second try, it doesn't matter which picture I choose, it brings the previous picture instead. Something like if it holds the picture somewhere, but never uses it, and brings it back later, on the next call.
I'm using it together with the ImageCrop made yourself, but not sure if I did something wrong! :(
Would be able to help me on this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: