You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the subscriptions functionality and was looking for any information in the documentation that discusses how subscriptions are kept alive if your app is either in the background for x amount or time or even if the device is locked. Is anyone able to support or offer any insights into the following?
If I leave the app in the background for an extended period of time i.e. users device is locked and the app is in the background for 30 - 40 minutes. Does the library automatically handle this?
If we do need to add in additional logic, is there a reference anywhere that goes into detail about this?
The text was updated successfully, but these errors were encountered:
There is a property on the WebSocketTransport called reconnect that controls whether the web socket should automatically attempt to reconnect when it loses connection, so that should reconnect the web socket when returning from the background. If you wanted more control over it you could manual handle disconnecting/reconnecting on application background/foreground. There isn't anything explicitly keeping the connection alive while the app is in the background though.
If you were looking to keep the subscription alive the whole time and actually receive data you would need to handle configuring the background task for your app and the web socket itself.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.
Question
I'm currently using the subscriptions functionality and was looking for any information in the documentation that discusses how subscriptions are kept alive if your app is either in the background for x amount or time or even if the device is locked. Is anyone able to support or offer any insights into the following?
The text was updated successfully, but these errors were encountered: