Skip to content

Commit e23cdc6

Browse files
fix(apple):No screenshot and view hierarchy for app hangs (#9079)
* fix(apple):No screenshot and view hierarchy for app hangs * Apply suggestions from code review Co-authored-by: vivianyentran <[email protected]> --------- Co-authored-by: vivianyentran <[email protected]>
1 parent 6995e5e commit e23cdc6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/platforms/apple/common/enriching-events/screenshots/index.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ When a user experiences an error, an exception or a crash, Sentry provides the a
1414

1515
This feature only applies to SDKs with a user interface, such as the ones for mobile and desktop applications. In some environments like native iOS, taking a screenshot requires the UI thread and in the event of a crash, that might not be available. Another example where a screenshot might not be available is when the event happens before the screen starts to load. So inherently, this feature is a best effort solution.
1616

17+
<Note>
18+
App hang events will not have a screenshot because the main thread is blocked and Sentry can't interact with UI elements in a background view.
19+
</Note>
20+
1721
## Enabling Screenshots
1822

1923
Screenshots may contain <PlatformLink to="/data-management/sensitive-data/">PII</PlatformLink> and is an opt-in feature. You can enable it as shown below:

docs/platforms/apple/common/enriching-events/viewhierarchy/index.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Sentry makes it possible to render a JSON representation of the view hierarchy o
1414

1515
This feature only applies to SDKs with a user interface, such as the ones for mobile and desktop applications. In some environments like native iOS, rendering the view hierarchy requires the UI thread and in the event of a crash, that might not be available. Another example where the view hierarchy might not be available is when the event happens before the screen starts to load. So inherently, this feature is a best effort solution.
1616

17+
<Note>
18+
App hang events will not have view hierarchy because the main thread is blocked and Sentry can't interact with UI elements in a background view.
19+
</Note>
20+
1721
<Note>
1822

1923
Deobfuscation for view hierarchies is fully supported for native SDKs, and React Native, but is currently not supported for Flutter. View hierarchies are not supported for SwiftUI.

0 commit comments

Comments
 (0)