getsentry / team-mobile

Meta issues for the Mobile team
4 stars 1 forks source link

Pause/Resume AppHangs #186

Open philipphofmann opened 1 week ago

philipphofmann commented 1 week ago

Add an API that pauses/resumes reporting app hangs and ANR tracking. This API is required, especially for Flutter and React-Native, to prevent the Cocoa SDK from reporting wrongly detected app hangs when the OS shows a system dialog for asking specific permissions. Please update the docs on Flutter and React-Native to mention this problem similar to how we did that for Cocoa https://github.com/getsentry/sentry-docs/pull/10409.

### Tasks
- [x] https://github.com/getsentry/sentry-cocoa/pull/4077
- [x] ~~Android~~
- [ ] https://github.com/getsentry/sentry-dart/issues/2116
- [ ] https://github.com/getsentry/sentry-react-native/issues/3909
romtsn commented 1 week ago

Android works a bit differently, so I crossed it out - basically we just report the ANRs that resulted in process death. And system popups don't cause the main thread to hang afaik