-
July 1st, 2016, 08:13 AM
#1
Background mode [iOS]
Hello,
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,
Joseph
Last edited by jotshin; July 1st, 2016 at 08:15 AM.
Reason: showing correct code format
-
July 4th, 2016, 11:11 AM
#2
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
Similar Threads
-
By Anatoly Gurfinkel in forum Client SDKs
Replies: 9
Last Post: July 6th, 2015, 04:24 PM
-
By benthemos in forum Client SDKs
Replies: 4
Last Post: February 27th, 2015, 06:58 AM
-
By mibrahim.youxel in forum Client SDKs
Replies: 4
Last Post: December 3rd, 2012, 09:49 AM
-
By carlost81 in forum Client SDKs
Replies: 1
Last Post: July 24th, 2012, 11:32 AM
-
By Test6405 in forum Client SDKs
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
-
Forum Rules
All times are GMT +1. The time now is 06:31 AM.
Bookmarks