getsentry / sentry-cocoa

The official Sentry SDK for iOS, tvOS, macOS, watchOS.
https://sentry.io/for/cocoa/
MIT License
797 stars 315 forks source link

Add screenshot to User Feedback #3602

Open lionel-alves opened 7 months ago

lionel-alves commented 7 months ago

Problem Statement

### Blocked by
- [ ] https://github.com/getsentry/sentry/issues/63749
- [ ] https://github.com/getsentry/sentry-cocoa/issues/3007

Would be great to be able to add a screenshot to the User Feedback using the SDK / API. See this epic

Solution Brainstorm

Add UIImage screenshot param to the UserFeedback model.

philipphofmann commented 7 months ago

The Cocoa SDK doesn't offer a UI for sending user feedback. Instead, it has a method SentrySDK.captureUserfeedback. It seems like the user feedback pulls the screenshot as an attachment from the correlated event. When https://github.com/getsentry/sentry/issues/63749 is complete, we would need https://github.com/getsentry/sentry-cocoa/issues/3007 to make this happen. I agree it makes sense to add this feature, but I can't give you an ETA.