Issue
I want to know whether the Flutter SDK caches errors while the mobile device is offline and uploads them to Sentry once the device is back online. I do not want to lose events when there is no network connection.
Applies To
Flutter SDK Users
Resolution
Yes, the Flutter SDK caches events offline out of the box. When the mobile device has no network connection, the SDK stores events locally and sends them automatically once the device is back online. On mobile, the native Android and iOS SDKs handle this caching.
To control how many events the SDK caches, set the maxCacheItems option. See the Sentry Flutter configuration options.
