Skip to content

Replace deprecated Sentry.captureFeedback calls on Android - #1646

Merged
runningcode merged 2 commits into
mainfrom
fix/android-feedback-api
Oct 22, 2026
Merged

runningcode merged 2 commits into
mainfrom
fix/android-feedback-api

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

sentry-java v9 removes the deprecated Sentry.captureFeedback(...) overloads (getsentry/sentry-java#6337). The replacement, Sentry.feedback().capture(...), already exists in the 8.x version we bundle, so we can switch now, ahead of the v9 bump.

The Android bridge had two call sites:

  • SentryBridgeJava.captureFeedbackWithScope called Sentry.captureFeedback(feedback, hint, callback). Against v9 this would fail to compile.
  • FAndroidSentrySubsystem::CaptureFeedback called the static Sentry.captureFeedback(Feedback, Hint) directly over JNI. Against v9 this would compile fine and then fail at runtime with a missing method. It now goes through a new SentryBridgeJava.captureFeedback helper, which calls Sentry.feedback().capture(feedback, hint). That way we don't need to add a JNI class ref for IFeedbackApi.

The bridge never used the removed showUserFeedbackDialog / SentryUserFeedbackDialog APIs, so nothing changes there.

via no.

--

View Junior Session [Sentry]

sentry-junior Bot and others added 2 commits October 22, 2026 11:30
Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io>
Co-Authored-By: Nelson Osacky <nelson.osacky@sentry.io>
@runningcode
runningcode marked this pull request as ready for review October 22, 2026 11:38
@runningcode
runningcode merged commit ba59c67 into main Oct 22, 2026
74 checks passed
@runningcode
runningcode deleted the fix/android-feedback-api branch October 22, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants