Skip to content

Reduce flushTimeoutMillis to 3 or 4 seconds for Android to avoid ANRs #2732

@romtsn

Description

@romtsn

Description

At the moment, we hold the lock for 15seconds (default for Java backend, which we inherited from on Android), which obviously will result in ANR on Android. I don't think this happens often when someone is using only Sentry for crash reporting, but when used in conjunction with Crashlytics for example, this can happen pretty easily. But still we could be more conservative here and reduce it to something like Crashlytics (3-4s), this can prevent some of those reported ANRs.

Originally reported in #2719

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions