You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/01/10 09:46:33 UTC
[GitHub] [cordova-plugin-file] snowdream opened a new issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
snowdream opened a new issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451
# 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
<!-- Include all relevant information that might help understand and reproduce the problem -->
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] jfoclpf commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
jfoclpf commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-792992155
Thanks anyway. Have a great day
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] jfoclpf commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
jfoclpf commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-803996605
Just to let you know that this issue [is fixed](https://stackoverflow.com/a/66553700/1243247). I tested now and it does work!
Simply edit your `config.xml` adding these entries inside `<platform name="ios">`
```xml
<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>
```
I'd say you can close the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] jfoclpf commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
jfoclpf commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-792595590
> You can try asking on [StackOverflow](https://stackoverflow.com/questions/tagged/cordova) or in our [Slack community](http://slack.cordova.io).
@timbru31 actually it has been asked one year ago, with no conclusive replies
https://stackoverflow.com/questions/60559455/how-to-save-file-in-ios-using-cordova-plugin-file
Could you kindly take a look?
I'm having exactly the same issue. Thanks
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] timbru31 commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-757460230
Thanks a lot for your issue, however this channel is for bug and feature requests, not for support. 😊
You can try asking on [StackOverflow](https://stackoverflow.com/questions/tagged/cordova) or in our [Slack community](http://slack.cordova.io).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] jfoclpf edited a comment on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
jfoclpf edited a comment on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-803996605
Just to let you know that this issue [is fixed](https://stackoverflow.com/a/66553700/1243247). I tested now and it does work!
Simply edit your `config.xml` adding these entries inside `<platform name="ios">`
```xml
<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>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-792707588
> 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
https://developer.apple.com/documentation/photokit would be helpful should you write your own plugin.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] breautek commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
breautek commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-792895171
> Thank you @breautek indeed it seems another user used `cordova-plugin-x-social-sharing` to save files in iOS accessible to end user. I'll give a try. Do you happen to know any other plugin applicable therefor?
No. That's not a problem I ever needed to solve. Sorry.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] jfoclpf commented on issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
jfoclpf commented on issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451#issuecomment-792858603
Thank you @breautek indeed it seems another user used `cordova-plugin-x-social-sharing` to save files in iOS accessible to end user. I'll give a try. Do you happen to know any other plugin applicable therefor?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
[GitHub] [cordova-plugin-file] timbru31 closed issue #451: I can not write image to the ios gallery with 'cordova-plugin-file'
Posted by GitBox <gi...@apache.org>.
timbru31 closed issue #451:
URL: https://github.com/apache/cordova-plugin-file/issues/451
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org