I've created an iOS app, that connects to an embedded device using swift-nio-ssh
. This app has no UI to control the device, as that is supposed to be done with a Watch app, using WatchConnectivity.
As it stands, I have to keep the iOS app in the foreground or the SSH client will die after a few seconds. Instead I'd like to be able to keep the proxy app running in background, screen locked or whatever else the user wants to do with their iPhone.
I've done research on background modes, but none of the available APIs seem to fit my use case.
- Have I overlooked something?
- If not, would I be able to abuse another API instead (Audio, VoIP or NetworkExtension from what I've gathered)?
- If so, would the app still be able to pass the review process somehow?
Thanks!