iOS: Login Manager Reconnect
I'm developing an iOS app and am currently logging users in to the Rainbow Cloud using their username and password (will move to token authentication later on in the development cycle).
The iOS SDK documentation states that the SDK will 'reconnect' to the cloud and use the previous session if 'disconnect' is not called. In this case, the 'kLoginManagerDidReconnect' event is supposed to be fired instead of the 'kLoginManagerDidLoginSucceeded' event.
But, I am not finding this to be the case. I can see in the console log that the SDK is reconnecting (a message like 'reconnect - reusing previous session' appears in the log) but it is still doing the same actions as a normal login does and the 'kLoginManagerDidLoginSucceeded' event is fired instead of the 'kLoginManagerDidReconnect' event.
Has anyone else come across this issue? Is this the expected behaviour?
iOS SDK version 1.72.0.
-
You're right the login/logout/reconnect process has involved since the documentation and sample codes were written.
Now the kLoginManagerDidReconnect notification is only sent by the SDK when :
- the device loose network connectivity and then regain it
- the app is put into background and after some delay the SDK long running task had terminated the cleanup job, then if the app is put back in foreground
I updated the Swift sample to demonstrate this behavior in ConversationsTableViewController
The documentation will be also updated.Thank you to point it !
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare