Hello Joseph,

the delegate method clientConnection:didReceiveConnectionFailure: is called each time the network connection to the Lightstreamer Server fails for some reason. It is also called when the app goes to background mode because iOS automatically closes any active connection. There are some cases where connections are kept active in background (e.g. VoIP, scheduled downloads) but Lightstreamer connections are not one of them.

Anyway, the Lightstreamer Client for iOS is able to reconnect and resubscribe automatically when the network is available again, or when app returns to foreground. Unless you have a specific reason to manually disconnect and reconnect, the correct behavior is to simply do nothing and let the client reconnect automatically.

Let us know if you need any further help.
Best regards,

Gianluca