Skip to content

Commit 17fce37

Browse files
fix(apple): Not taking screenshots for all crashes (#13331)
Explain why the Cocoa SDK can't capture screenshots for all types of crashes. Co-authored-by: Alex Krawiec <[email protected]>
1 parent 48624ef commit 17fce37

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/apple/common/enriching-events/screenshots

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ notSupported:
1010
- apple.watchos
1111
---
1212

13-
Sentry makes it possible to automatically take a screenshot and include it as an <PlatformLink to="/enriching-events/attachments/">attachment</PlatformLink> when a user experiences an error, an exception or a crash.
13+
Sentry makes it possible to automatically take a screenshot and include it as an <PlatformLink to="/enriching-events/attachments/">attachment</PlatformLink> when a user experiences an error, an exception or a crash. When a crash occurs on Apple operating systems, there is no guarantee that the Cocoa SDK can still capture a screenshot since you're technically not allowed to call any async unsafe code. While it still works in most cases, we can't guarantee screenshots for all types of crashes.
1414

1515
This feature is only available for SDKs with a user interface, like the ones for mobile and desktop applications. It's also limited by whether taking a screenshot is possible or not. For example, in some environments, like native iOS, taking a screenshot requires the UI thread, which often isn't available in the event of a crash. 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

0 commit comments

Comments
 (0)