How to transfer file using WiFi or Activities(on iOS)?
-
My app needs some accessory files made by Excel. So, I want to import them to my app. To combat this import-problem, some app use WiFi others use Activities(download files from other app, and open them choosing the one).
Which method is easier to implement?
Thanks. -
My app needs some accessory files made by Excel. So, I want to import them to my app. To combat this import-problem, some app use WiFi others use Activities(download files from other app, and open them choosing the one).
Which method is easier to implement?
Thanks.hi @Bayesky
if you want to use AirDrop or the share file feature of iOS than I'm afraid there's no easy way to implement that.
You'll have to go native/Objectiv-C with that.@ekkescorner has a nice block post about this general topic:
https://blog.qt.io/blog/2017/12/01/sharing-files-android-ios-qt-app/however, if you want to download the files from an ftp server in the network or something along that line. You can do that easily with QNetworkAccessManager
Or you could make an app with a wifi socket connection (tcp/udp) and share your data that way. That should be rather easy as well
-
-
Thank you very much for your prompt reply and detailed content supplied.
If using wifi socket connection (tcp/udp), I wonder how to know cellphone's IP so that I can use the browser to access the specified directory of my mobile phone normally. -
@Bayesky If you want to access files hosted on your phone via FTP you will need to have an FTP server running on your phone. I doubt this will be possible on a not-rooted device because of security reasons.