I am developing an iOS app for iPad with Xojo. I would like to edit an image stored on the iPad a little and use it on the Mac side. I have two questions.
Is it possible to save an image file from an iOS app to iCloudDrive on a web browser? It may be possible to do this using URLConnection, but I have not been able to implement it. Access to iCloud is difficult due to the difficulty of Apple Developer authentication, but I thought that my request could be realized by exchanging data with iCloud in a browser.
I created a shared folder on my Mac and was able to share files from my iPad to my Mac via SMB using the standard file app. Is it possible to save an image from an iOS app to this shared file?
I’m asking a lot of questions, but please help me if you don’t mind.
If your server is Windows or macOS you should be able to do this. My host is Windows and I have an external host (SSH on a NAS with 32 TB in my home) mounted as a drive letter (via MountainDuck), then I placed an alias/shortcut of a sub folder into my AppData folder. My WebApp just looks for a folder and reads the files as if they were local. In my case I am using a Xojo WebApp, but a URLConnection to the same WebApp could also allow a Desktop or iOS iPad app to access the same data folder/files and pass the results back via HandleURL.
Now if you can mount an iCloud Drive on your Linux/Windows/macOS Web Server, you can do the same thing.
The main purpose is to exchange images between apps from iPad to Mac, so maybe my idea of putting data on iCloud in the first place is wrong. That’s because I thought it would take time to monitor the web from the app. I’ll try to find a way to share files, as in No. 2.
Thank you for explaining the details. I don’t know if I have the skills to set up a web server, so this time I want to find a way to share files. The example you gave me was helpful.
Your plugin software is look so good. Can I easily share files between iPad and Mac with this? However, I think it would be good if I could do it with the basic functions of Xojo. If it seems difficult to send files directly from an iOS app to a Mac, I will run an app on the Mac side and send and receive files with Socket.
The application running on the Mac is set up to monitor the shared folder at regular intervals, so it would be sufficient if the application running the server socket could save images to that shared folder.