porthole / docs / ios-background

iOS background behaviour

Install and configure the daemon · Run your own push relay · iOS background behaviour

iOS suspends an app’s network connections shortly after it leaves the foreground. Porthole keeps the WebSocket open while the app is visible and for the short grace period iOS allows afterwards; after that no notifications can arrive from the daemon directly.

What that means in practice:

The only way to wake an iOS app from the outside is Apple’s push service, which requires a server holding the app’s push key. That is what the optional Supporter subscription pays for: the daemon sends an encrypted wake-up through a small relay, the phone wakes, brings the VPN up on demand, and fetches the details from your machine. Nothing about your sessions leaves the VPN; the relay sees a device token and ciphertext.