-
Notifications
You must be signed in to change notification settings - Fork 759
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
I can not write image to the ios gallery with 'cordova-plugin-file' #451
Comments
Thanks a lot for your issue, however this channel is for bug and feature requests, not for support. 😊 |
@timbru31 actually it has been asked one year ago, with no conclusive replies I'm having exactly the same issue. Thanks |
IOS is a closed system. You can't access the iOS gallery via the filesystem. There are special native apis for writing and reading to the gallery. You'll need to find a plugin, or write your own that interfaces these APIs. I'm not an expert on native iOS development but I believe |
Thank you @breautek indeed it seems another user used |
No. That's not a problem I ever needed to solve. Sorry. |
Thanks anyway. Have a great day |
Just to let you know that this issue is fixed. I tested now and it does work! Simply edit your <edit-config target="UIFileSharingEnabled" file="*-Info.plist" mode="merge">
<string>YES</string>
</edit-config>
<edit-config target="LSSupportsOpeningDocumentsInPlace" file="*-Info.plist" mode="merge">
<string>YES</string>
</edit-config>
<edit-config target="UISupportsDocumentBrowser" file="*-Info.plist" mode="merge">
<string>YES</string>
</edit-config> |
Bug Report
Problem
I have a image with base64 data.
now i want to write the image to the ios gallery with 'cordova-plugin-file',But i failed.
I do not know which path i can write to .
cordova.file.dataDirectory?
cordova.file.documentsDirectory?
What is expected to happen?
The image can be shown in the gallery of the iphone.
What does actually happen?
The image can not be shown in the gallery of the iphone.
Information
Command or Code
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: