Skip to content

chore: Demonstrate screen capture in mobile samples#5040

Open
jamescrosswell wants to merge 3 commits intomainfrom
attach-screenshot-samples
Open

chore: Demonstrate screen capture in mobile samples#5040
jamescrosswell wants to merge 3 commits intomainfrom
attach-screenshot-samples

Conversation

@jamescrosswell
Copy link
Collaborator

@jamescrosswell jamescrosswell added the skip-changelog Suppress automatic changelog generation via Craft label Mar 19, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


🤖 This preview updates automatically when you update the PR.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.02%. Comparing base (2db04c4) to head (0892029).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5040      +/-   ##
==========================================
+ Coverage   74.01%   74.02%   +0.01%     
==========================================
  Files         499      499              
  Lines       18065    18065              
  Branches     3518     3518              
==========================================
+ Hits        13370    13373       +3     
+ Misses       3836     3834       -2     
+ Partials      859      858       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jamescrosswell jamescrosswell marked this pull request as ready for review March 19, 2026 03:18
Copy link
Member

@Flash0ver Flash0ver left a comment

Choose a reason for hiding this comment

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

Got a few questions / notes about consistency and link correctness.


// If your app doesn't have sensitive data, you can attach screenshots automatically when a Java/native
// error is captured.
// Note: this only applies to Java-based errors; .NET managed exceptions are not currently supported.
Copy link
Member

Choose a reason for hiding this comment

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

question: Note for iOS?

Does this Note also apply to both the iOS and Mac Catalyst samples?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tbh, I can't remember where I copied this from (presumably some documentation for the Android SDK but I can no longer find it).

Let's just remove this line as it's potentially confusing.

To answer your question though, I think yes this would apply to both Android and iOS... it'd to do with the order in which the signal handlers fire and .NET will try to insert it's own signal handler in the queue first so that if an exception occurs in what was, originally, managed code, it gets handled by the .NET exception handler (e.g. a try..catch block). The native SDK that is capturing screenshots (per this setting) will only get activated when capturing native exceptions (i.e. if .NET's signal handler didn't already fire).

@jpnurmi does it sound like I've got that right? You've been going deep down the rabbit hole on this recently...

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, with today's signal-handling order, both sentry-native and sentry-cocoa step on the .NET runtime's toes and accidentally handle certain .NET exceptions as fatal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Suppress automatic changelog generation via Craft

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: Set AttachScreenshot=true in the install wizard(s)

3 participants