Repository navigation
Android feedback sheet, and no shake on iOS - #8
Merged
Merged
Conversation
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
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Feedback.present()orFeedbackButton. On Android the screenshot trigger usesActivity.registerScreenCaptureCallback(Android 14, API 34, and up,DETECT_SCREEN_CAPTUREwith no prompt) and captures the app's own window withPixelCopy. Below API 34 there is no screenshot trigger.FeedbackTriggers.shake,deviceDidShakeNotification, theUIWindow.motionEndedoverride,.feedbackOnShake()and the demo's shake toggle.android/coreis 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 readfixtures/in place.android/feedbackkitis 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.platformisAndroid.android/demois the sample app, productfeedback, 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.docs/plans/2026-11-28-android-feedbackkit.md.android/README.mdand the root README document the Android library.Verified
./gradlew :core:test: 104 tests pass, 60 of them the shared fixtures.:demo:assembleDebug,:demo:assembleReleaseand:feedbackkit:assembleReleasebuild.magritte-phoneemulator (API 37), a screenshot taken withKEYCODE_SYSRQor power and volume down opens the sheet.adb exec-out screencapdoesn't fire the callback.npm run review:local(throughadb reverse tcp:5184 tcp:5184) arrived with its image, pins and Android meta.swift testinapple/FeedbackKit: 46 tests pass after the shake removal. The iOS demo builds for the simulator.Not verified
android/.After merge
Nothing