Hi! We are planning to build an app for a research project that collects sensitive information (such as symptoms, photos and audio). We don't want to store this data locally on the phone or within the app but rather have it securely transferred to a safe SFTP server. Is it possible to implement this i iOS, and if so, does anyone have any recommendations on how to do this?
have it securely transferred to a safe SFTP server.
That’s certainly possible, but you’d be better off if you switched the server over to HTTPS.
SFTP presents a number of challenges on iOS:
-
There’s no built-in SFTP support, so you need to write or acquire your own SFTP library.
-
If you want to upload large amounts of data from the background, the best option is a
URLSession
background session, and that only supports HTTPS.
We don't want to store this data locally on the phone or within the app
To be clear, you will have to temporarily store the data on the phone. iOS apps can be terminated any time they move into the background, so any critical user data has to be persisted to disk.
On the plus side, iOS has good facilities to protect such data.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"