Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/platforms/react-native/configuration/app-hangs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,19 @@ Sentry.init({
});
```

### Pause and Resume App Hang Tracking (iOS only)

Starting with version 8.12.0, you can pause and resume app hang tracking at runtime. This is useful when showing system dialogs (for example, permission prompts) that block the main thread but aren't real app hangs.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ The version need to be updated if the implementation doesn't make it in this release

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed to the next release with 21c228e

Comment thread
antonis marked this conversation as resolved.
Outdated

```javascript
import * as Sentry from "@sentry/react-native";

Sentry.pauseAppHangTracking();

// Do something that might cause the app to hang,
// and you don't want the SDK to report it.

Sentry.resumeAppHangTracking();
```
Comment thread
sentry[bot] marked this conversation as resolved.

To read more about how app hangs are detected, check out the `sentry-cocoa` [documentation](/platforms/apple/configuration/app-hangs/).
Loading