-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Channel history problem #717
Comments
@ova-adam Thanks for reporting this. I'll investigate. In the meantime you can set a more detailed log level ( A few questions:
|
@ova-adam Also. One thing is not clear to me. |
No, the app does not crash, but once I resume from airplane mode (say in 3
minutes), it will not replay any missing history that took place.
The error only shows in the nslog console.
I tried this the latest (ending in x.x.12) and all the day down to x.x.9 on iOS 10.3.3 (latest iPhone 5)
|
I don't follow what you mean. If a device is not connected for 2 minutes, then a resume will fail (see https://www.ably.io/documentation/realtime/connection#connection-state-explained), and history will not be replayed automatically (which seems ot concur with your statement the warning "connection has reconnected, but resume failed"). Then as far as I can tell, in your logs we see:
Is this an Ably error? What error are you seeing other than "connection has reconnected, but resume failed" which is expected when disconnected for a period of time. |
This is intended behavior. As @mattheworiordan mentioned, after you are disconnected for 2 minutes, a resume will fail. You can use the history API to fetch further data back in history. |
Closing this. Feel free to reopen if needed. |
Our code throws an error when trying to load history once the iOS device is disconnected for longer than 2 minutes.
Log:
--Here we set the device to Airplane mode
--3 messages are sent while the device is offline
--Here we disable Airplane mode and Ably automatically reconnects:
How we set up the listener:
This function above fires properly when the app is first launched and history is loaded, but throws the "WARN: R:0x15d4d8f0 ARTRealtime: connection has reconnected, but resume failed" if the device goes into airplane mode and out again.
This has worked in the past, so not sure what's going on. There isn't any documentation on the error message, either, so we're a bit lost here. It seems to only be recently because I've tried previous branches of our code that worked months ago and those have the same problem now too. Has there been changes to the backend at Ably or are we doing something wrong?
The text was updated successfully, but these errors were encountered: