Results 1 to 2 of 2
  1. #1

    Background mode [iOS]


    I'm wondering what the method implemented in your iOS SDK so that it's not forced to go to suspended mode?

    Currently I'm tracking the delegate

    and found out it's very often called, even if the app goes to background.

    Could this be correct? If yes, how could we control the behaviour? By close the connection by ourselves?

    Thanks in advance for your answer,
    Last edited by jotshin; July 1st, 2016 at 08:15 AM. Reason: showing correct code format

  2. #2
    Join Date
    Feb 2012
    Bologna, Italy
    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,




Similar Threads

  1. Connection timed out on empty credentials on iOS [iOS]
    By Anatoly Gurfinkel in forum Client SDKs
    Replies: 9
    Last Post: July 6th, 2015, 04:24 PM
  2. Replies: 4
    Last Post: February 27th, 2015, 06:58 AM
  3. LS iOS LSCommand mode sample
    By mibrahim.youxel in forum Client SDKs
    Replies: 4
    Last Post: December 3rd, 2012, 09:49 AM
  4. Lightstreamer running in background
    By carlost81 in forum Client SDKs
    Replies: 1
    Last Post: July 24th, 2012, 11:32 AM
  5. Replies: 1
    Last Post: November 2nd, 2009, 04:55 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT +1. The time now is 01:13 PM.