Skip to content

Android feedback sheet, and no shake on iOS - #8

Merged
artifact-agent merged 5 commits into
mainfrom
6-android-feedbackkit
Nov 29, 2026
Merged

artifact-agent merged 5 commits into
mainfrom
6-android-feedbackkit

Conversation

@artifact-agent

Copy link
Copy Markdown
Contributor

FeedbackKit for Android: the same sheet, relay calls and fixtures as the iOS package, in a Kotlin core, a Compose library and a demo app under android/. Shake is removed on iOS, because neither platform offers it now.

Fixes #6

Changes

  • The sheet opens two ways on both native platforms: a screenshot, and the app's own Feedback.present() or FeedbackButton. On Android the screenshot trigger uses Activity.registerScreenCaptureCallback (Android 14, API 34, and up, DETECT_SCREEN_CAPTURE with no prompt) and captures the app's own window with PixelCopy. Below API 34 there is no screenshot trigger.
  • iOS drops FeedbackTriggers.shake, deviceDidShakeNotification, the UIWindow.motionEnded override, .feedbackOnShake() and the demo's shake toggle.
  • android/core is plain Kotlin/JVM: the multipart report, the draft rules, pin and bubble placement, meta and title building, the relay client and the device-flow sign-in, with JUnit 5 tests that read fixtures/ in place.
  • android/feedbackkit is the Compose sheet: edit (Comment, pen, box, redact, Undo; Close and Send), confirm, sign-in and sent, in system red, with the screenshot rounded to the display's corner radius. meta.platform is Android.
  • android/demo is the sample app, product feedback, with a debug-only intent hook for scripted states. Debug builds allow plain http to 127.0.0.1, localhost and 10.0.2.2 only.
  • The plan is docs/plans/2026-11-28-android-feedbackkit.md. android/README.md and the root README document the Android library.

Verified

  • ./gradlew :core:test: 104 tests pass, 60 of them the shared fixtures.
  • :demo:assembleDebug, :demo:assembleRelease and :feedbackkit:assembleRelease build.
  • On the magritte-phone emulator (API 37), a screenshot taken with KEYCODE_SYSRQ or power and volume down opens the sheet. adb exec-out screencap doesn't fire the callback.
  • A report sent from the emulator to npm run review:local (through adb reverse tcp:5184 tcp:5184) arrived with its image, pins and Android meta.
  • swift test in apple/FeedbackKit: 46 tests pass after the shake removal. The iOS demo builds for the simulator.
  • Screenshots of home, edit, open comment, confirm and sent on both demos, side by side.

Not verified

  • No physical Android device, and no Android version other than API 37.
  • GitHub sign-in against the production relay; only the scripted sign-in state was shown.
  • Dark mode on Android.
  • The JPEG fallback for images over about 9.5 MB, beyond unit tests.
  • On Android 14 and up, the system's screenshot preview and "detected this screenshot" notice sit over the sheet for a few seconds; the sheet opens at once rather than waiting for them.
  • CI doesn't build or test android/.

After merge

Nothing

Artifact Agent added 5 commits November 28, 2026 21:29
FeedbackKit for Android: the screenshot trigger on API 34+, Feedback.present()
and FeedbackButton, and the Compose sheet with pins, drawings, the
confirmation step, GitHub sign-in and the receipt. The demo mirrors the iOS
one, with debug-only launch hooks for scripted states.

Refs #6
android/README.md mirrors apple/README.md; the root README lists Android.
The plan's exit test records the screenshot routes that fire the callback
and how the emulator reaches the local relay. Debug demo builds allow plain
http to the loopback.

Refs #6
Android's schedule rows are taller than iOS's, so the shared coordinates
straddled two rows.

Refs #6
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.

Android feedback sheet: a Kotlin library and demo app

1 participant