Connecting iOS App to USB Flash Drive - ios

All,
We are developing a iPhone app, It has feature to generate a txt/pdf file and copy it to a USB flash drive for future purpose. I know we need to have MFI license to have a USB device. Are there any providers who can provide the device and SDK, so that we can integrate to our own app. Or
If we have any USB drive can we use iOS SDK to write the files?
Please let me know if any thing is possible.

Related

How do you copy a file to and from an external USB drive in iOS/iPadOS?

I'm building a react native app where I need to view the contents of an external storage device and copy files to and from said device through my app. On android I'm using an sd card mounted on a USB adapter and connected through a USB C cable). I would like to do something similar in iOS devices, specifically iPads.
On android I'm using the ExternalStorageDirectoryPath constant in react-native-fs. There doesn't seem to be an alternative for iOS.
I'm happy to write native code if need be and use the JS bridge, although I'am new to swift development. I just want to know whether it is possible to access external storage drives over USB on iOS devices, and if so where to find information about it.
I have looked through apple's FileManager documentation here and can't seem to find anything. I'm also finding apple's documentation hard to navigate through and extract useful information out of. I'm wondering if that's a common experience or am I just new to native iOS development and therefore going through some steep learning curve when reading apple's docs.

iOS application using USB MSC or MTP(Mass Storage or Media Transfer Protocol)

currently I'm considering the iOS application like below,
Application:
Using the lightning USB3 camera adapter, by MSC(Mass Storage Class) or MTP(Media Transfer Protocol),
browse and copy files from devices which have USB connector to iPhone.
Lightning USB3 camera adapter
http://www.apple.com/jp/shop/product/MK0W2AM/A/lightning-usb-3カメラアダプタ
I asked Apple, with TSI(Technical Support Incident) for creating such iOS application, and they said iOS SDK doesn't support MSC / MTP.
By using Apple's USB Host Adapter(Lightning USB3 Camera Adapter), is there any way to create application to browse files in connected device by USB cable with MSC or MTP ?
I'd appreciate if you would answer the questions or give me some information.
Thank you.

How to transfer a file from a Mac application to an iOS viewer?

We would like to develop a feature similar to what exists in InDesign: when you create a "folio", you can preview it in an iOS "viewer" app, providing:
the iOS device is connected to the Mac with a USB cable
the "viewer" is opened on the iOS device.
The description of this feature is available at http://helpx.adobe.com/digital-publishing-suite/help/preview-folios-articles.html#use_preview_on_device.
There are 2 questions:
how can InDesign detect that the "viewer" app is opened on the device?
how can InDesign transfer a file to the iOS device, and have the "viewer" open the file?
We are aware that file transfer is possible using iTunes, but it's not the method used by InDesign (the way they do it is much more simple and straightforward).
Googling or searching on Stack Overflow does not seem to provide reliable answers so far.
Well, accessing iOS devices from USB is not authorized by Apple, so you got three possibilities :
Use MobileDevice private framework from Apple, you can read files from your app using the Document folder of you app via AFC.
Use libmobiledevice, an open-source and cross-platform library, same as MobileDevice but not so stable across iOS versions.
Use usbmux tunnel to connect to your app via sockets (require MobileDevice or libimobiledevice)
I think that usbmux is the best solution, the protocol used in usb never changed a lot and is very stable, even in libimobiledevice.

access to ipod library for streaming over upnp

I am implementing an app who should be able to stream music from ipad/iphone to a specific device over upnp. my app should be media server and control point.
i am using Platinum SDK and i managed to access itunes library from mac, but not from ipad/iphone
Any ideas about how can i make available the itunes library?

ExternalAcessory Framework for iOS: using the iphone as a usb device

I'm looking into the iOS sdk for examples of the ExternalAccessory framework to use the iphone/ipad as an USB device that can be plugged into a PC or Mac and present as external device (like a midi controller or something else)
The App i want to create requires connecting to a host (PC or Mac) the iphone via USB or bluetooth and present to the host a functionality. How can i implement this?
You'll probably have an easier time connecting via WiFi. You need to be part of the Apple Made for iPhone program, which is not easy to get into, to use Bluetooth or the dock connector to talk to peripherals. There's no such restriction on the use of WiFi. Also, you'll find a lot more helpful examples of connecting via WiFi on the web.
CoreMIDI is the appropriate API for emulating a MIDI device, which may be possible over USB using Apples Camera Connection kit.

Resources