sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Pause/Resume AppHangs

Open krystofwoldrich opened this issue 1 year ago • 8 comments

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
- [ ] Expose cocoa API in RN/JS
- [ ] Add docs
- [ ] Highlight that it's iOS only

krystofwoldrich avatar Jun 21 '24 12:06 krystofwoldrich

Any update on this?

yolpsoftware avatar Nov 24 '24 10:11 yolpsoftware

Hi @yolpsoftware, thank you for letting us know your interest, no updates at the moment.

krystofwoldrich avatar Nov 25 '24 09:11 krystofwoldrich

Seeing a lot of App Hang errors for our app, would love to have this API available for react-native. @krystofwoldrich any ETA on when this will land?

tb-nishant avatar Mar 21 '25 16:03 tb-nishant

@tb-nishant no ETA at the moment, but I'll bring it up with the team

kahest avatar Mar 25 '25 13:03 kahest

Definitely some interest from my teams as well in this 🙏

brianmorin-ef avatar Jun 03 '25 13:06 brianmorin-ef

yes we would like this as well.

mljlynch avatar Aug 15 '25 17:08 mljlynch

While this feature isn't available, is there an alternative solution to pause/resume app hanging tracking?

rafaelcustodio-nomad avatar Nov 06 '25 16:11 rafaelcustodio-nomad

Thank you for bumping this feature request @rafaelcustodio-nomad 🙇 Currently this feature is only available on the Apple SDK which would require manual initialization

antonis avatar Nov 11 '25 15:11 antonis