flagsmith-flutter-client icon indicating copy to clipboard operation
flagsmith-flutter-client copied to clipboard

Crashlytics reporting a crash when the user lost the internet connection

Open revtut opened this issue 1 year ago • 1 comments

Hi everyone,

When the enableAnalytics is enabled if the user had the app opened but out of the sudden lost the internet connection, the syncing method will throw an error that is not caught anywhere and thus reports a crash.

I believe that we should not throw the error and instead just log it. What do you think about it?

In the meantime, I'll disable the analytics to avoid any crashes.

https://github.com/Flagsmith/flagsmith-flutter-client/blob/284bab1dadf54e0782c89f3b1fa43a5c27e67fd1/lib/src/flagsmith_client.dart#L95

Screenshot 2024-08-02 at 10 22 15

revtut avatar Aug 02 '24 10:08 revtut