sentry-native icon indicating copy to clipboard operation
sentry-native copied to clipboard

Provide user-feedback capability to the Native SDK

Open supervacuus opened this issue 2 years ago • 9 comments

The wish to provide some access to this capability was recently raised. This is not necessarily meant as an enhancement of the code but could also be documentation that describes how to use existing Native SDK API and sentry endpoints to accomplish this on the client side.

A user was reaching out a couple of years ago but closed the issue, and we have yet to provide a solution.

Following the SDK development docs and considering the level of application-level support the Native SDK can provide without introducing a lot of dependencies, we could provide something like an onCrashedLastRun hook that provides enough context so that users create their own feedback UI and send a request to the user feedback endpoint.

cc: @kahest

supervacuus avatar Sep 14 '23 10:09 supervacuus

+1 to this, really want to avoid having to make janky json POST calls in a crash handler 😄

sapphonie avatar Sep 18 '23 14:09 sapphonie

Also note that recently @michellewzhang added in-product onboarding wizard for all platforms we had support at that time.

For Native, we're showing this: image

Here are some example PRs from Michelle if you folks want to add it to Sentry

bruno-garcia avatar Mar 18 '24 19:03 bruno-garcia

Note that https://github.com/getsentry/sentry-native/pull/966 covers an API to prepare and send User Feedback. It does not, however, provide functionality and hooks to retrieve details about previous crashed runs, like onCrashedLastRun suggested above.

kahest avatar Mar 20 '24 17:03 kahest

While #966 covers some ground, we shouldn't close this issue yet.

supervacuus avatar Mar 21 '24 17:03 supervacuus