Crashlytics reporting a crash when the user lost the internet connection

Open
#63 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Wreos is already working on this.

Since Jan 23, 2026.

  • #87 by @Wreos — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile

Research direction

Start at lib/src/flagsmith_client.dart around line 95, where the analytics syncing method is linked, and reproduce the behavior with the app offline. Done means losing connectivity while analytics is enabled no longer reports a crash and the error is logged instead.

Written by the indexing model from the issue text.

Description

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
Dominant language
Dart
Stars
17
Forks
18
Avg merge
3d 16h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Flagsmith/flagsmith-flutter-client

All issues in Flagsmith/flagsmith-flutter-client

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.