Provide user-feedback capability to the Native SDK
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
+1 to this, really want to avoid having to make janky json POST calls in a crash handler 😄
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:
Here are some example PRs from Michelle if you folks want to add it to Sentry
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.
While #966 covers some ground, we shouldn't close this issue yet.