ably / ably-flutter

A wrapper around our Cocoa and Java client library SDKs, providing iOS and Android support for those using Flutter and Dart.
https://ably.com/download
Apache License 2.0
60 stars 16 forks source link

When the app comes back from the iPhone after a long time in the background #540

Open walkerJung opened 1 month ago

walkerJung commented 1 month ago
 Realtime(
      options: ClientOptions(
        key: ABLYAPIKEY,
        autoConnect: true,
        disconnectedRetryTimeout: 500,
        suspendedRetryTimeout: 500,
        logLevel: LogLevel.verbose,
      ),
    );

Does the above source code work normally? I think it takes almost 10 seconds for the realtime state to change to connect when I leave the app in the background for a long time on my iPhone and then come back

┆Issue is synchronized with this Jira Task by Unito

sacOO7 commented 1 month ago

Hi @walkerJung thanks for raising the issue. Although, we will need more information regarding this. Can you please enable verbose logging for ably client and post logs here. Logs should include corresponding timestamp to understand connect/disconnect cycle better. Also, we will need timestamp when app enters background and foreground state.