Skip to content

fix(app): declare the microphone so voice input can record in the apps - #2035

Merged
devswha merged 2 commits into
devswha:mainfrom
nahwan-kim:fix/app-microphone-permission
Oct 26, 2026
Merged

devswha merged 2 commits into
devswha:mainfrom
nahwan-kim:fix/app-microphone-permission

Conversation

@nahwan-kim

@nahwan-kim nahwan-kim commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Change

Voice input never worked in the Android app: the mic button failed at once with "Microphone permission was denied", and the app's system settings had no microphone entry to allow.

When a page calls getUserMedia({ audio: true }), Capacitor 8.5.3's BridgeWebChromeClient.onPermissionRequest requests RECORD_AUDIO and MODIFY_AUDIO_SETTINGS at runtime. Neither was in AndroidManifest.xml, and Android refuses an undeclared permission without showing a prompt, so the web client always got NotAllowedError.

iOS has the same gap: Capacitor grants WebView media capture, but Info.plist had no NSMicrophoneUsageDescription, which iOS requires before an app records.

  • AndroidManifest.xml: declare RECORD_AUDIO and MODIFY_AUDIO_SETTINGS.
  • Info.plist: add NSMicrophoneUsageDescription.
  • app/store/ios.md: list the microphone text, and say in the App Review note what the microphone is used for. The Play data safety answers in app/store/android.md already cover voice recordings.

Validation

  • ./gradlew assembleDebug, then aapt2 dump permissions on the APK: both permissions are listed.
  • Android emulator (Pixel 10a image, API 37), app opened on a PC running Ovis, Settings > Voice input > turn on: the system's "Allow Ovis to record audio?" prompt appeared. After allowing, dumpsys package shows RECORD_AUDIO: granted=true and the status bar shows the mic indicator. Before the change, the same step on a Galaxy Fold with the released app failed with no prompt.
  • plutil -lint app/ios/App/App/Info.plist: OK.
  • bun test scripts/changelog-fold.test.ts: 12 pass.
  • Not tested: dictating real audio on the emulator (started with -no-audio), and iOS on a device or simulator.

Capacitor's WebChromeClient asks for RECORD_AUDIO and MODIFY_AUDIO_SETTINGS when a page opens
the microphone, and Android refuses an undeclared permission without a prompt, so voice input in
the Android app always failed with NotAllowedError. iOS needs NSMicrophoneUsageDescription before
an app may record.

Tested: debug APK lists both permissions (aapt2); on an Android emulator, turning voice input on
  showed the record-audio prompt and RECORD_AUDIO was granted after allowing; plutil -lint
  Info.plist; scripts/changelog-fold.test.ts
Not-tested: dictation with real audio; iOS on a device or simulator
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: devswha/ovis
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 2ad63df
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53c9d572-cfd6-46f3-a12d-c59c14c72616

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: devswha/ovis
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 2ad63df
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 88850b88-88b5-474d-863f-fbd153cff0b3
Commits

Reviewing files that changed from the base of the PR and between 2ad63df and c80932e.

Files selected for processing: 4
  • app/android/app/src/main/AndroidManifest.xml
  • app/ios/App/App/Info.plist
  • app/store/ios.md
  • changelog.d/app-microphone-permission.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Android now requests microphone access, and iOS explains why microphone access is needed for voice input. These updates support dictating messages and commands using the microphone button.

The Android manifest now declares microphone-related permissions. The iOS app adds a microphone usage description. The iOS store notes clarify that microphone use starts with the mic button.

Changes: Native microphone permissions

Layer / File(s) Summary
Permission declarations and supporting text
app/android/app/src/main/AndroidManifest.xml, app/ios/App/App/Info.plist, app/store/ios.md, changelog.d/app-microphone-permission.md
Android declares RECORD_AUDIO and MODIFY_AUDIO_SETTINGS. iOS adds NSMicrophoneUsageDescription. The iOS store notes specify that microphone use is limited to voice input started with the mic button. The changelog records the permission changes.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related PRs

  • devswha/ovis#1920: Adds macOS microphone usage text and an audio-input entitlement for dictation.

Suggested reviewers: devswha

Merge Risk: Minimal · previous review c8093

The microphone permission metadata and supporting text align with the stated voice-input behavior.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: declaring microphone permissions so voice input can record in the apps.
Description check Passed The description includes complete Change and Validation sections. It explains the Android and iOS permission gaps, the resulting behavior, the modified files, validation results, and untested scope.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (4 skipped: 4 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devswha

devswha commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Verified at c80932e. The Android manifest and iOS plist parse, and both now declare the microphone (RECORD_AUDIO + MODIFY_AUDIO_SETTINGS, NSMicrophoneUsageDescription); on main neither does. The purpose string describes the existing dictation feature. bun run check fast passes (7,429 pass / 0 fail).

I pushed one docs commit, 98b4590, to the App Review note in app/store/ios.md: it said the microphone is used only when the user taps the mic button, but turning Voice input on in Settings also opens it briefly to ask for access (chooseVoiceInput in SettingsDialog.tsx), and the keyboard shortcut starts dictation too. No other change. Not tested here: the real permission prompts on a device, which your emulator run covers. Thanks, @nahwan-kim.

@devswha

devswha commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Merge pass review report. Overall: PASSED. This outside contribution from @nahwan-kim declares the microphone so voice input can record in the Android and iOS apps. The maintainer approved the merge, and the gate (omo-native-gate-reviewer, gpt-6-astra) passed it.

Gate verification:

  • Android adds the microphone permission and the audio-settings permission Capacitor needs with it. No other permission and no exported component changes.
  • iOS adds the microphone usage description, which matches app/store/ios.md.
  • Both the XML and the plist parse, and typecheck passes.
  • The change only declares the permission, so it wasn't tested on a device. Dori will check voice input on a real device in the next app build.

A maintainer adds the changelog credit when the release folds the fragments (changelog.d/README.md).

@devswha
devswha merged commit 4cc1c73 into devswha:main Oct 26, 2026
11 checks passed
@nahwan-kim
nahwan-kim deleted the fix/app-microphone-permission branch October 26, 2026 23:39
@devswha devswha mentioned this pull request Oct 27, 2026
devswha added a commit that referenced this pull request Oct 27, 2026
## Release 0.4.19

The release PR, made by the steps in
[docs/development.md#releasing](docs/development.md#releasing), on main
9d76cca (#2078):

- **Version:** `version` is 0.4.19 in `package.json` and
`herdr-plugin.toml`.
- **Changelog:** `bun scripts/changelog-fold.ts 0.4.19` moved the
`changelog.d` fragments of 54 PRs into CHANGELOG.md, with PR links, and
deleted them.
- Outside contributors are credited: #1955 @YuuuXie, #1957 @Noobear,
#1984 @bonecool999, #2003 @philipprass-prog, #2016 @kyop21, #2024
@YuuuXie, #2025 @YuuuXie, #2027 @jpcarranza94, #2030 @phlips5437, #2031
@yaaayaaa, #2034 @jpcarranza94, #2035 @nahwan-kim, #2041 @odfalik, #2045
@mattmarcin, #2052 @jpcarranza94, #2057 @kyop21, #2061 @YuuuXie.
- **Release summaries:** `release-summaries.json` has the 0.4.19 entry
in en, ko, ja and zh, with the same lists in each: 5 new, 5 improved, 5
fixed. Every English line is at most 70 characters.
- **Remote bundle:** `REMOTE_BUNDLE_VERSION` goes from 37 to 38 in
`shared/machines.ts`, because the remote bundle's inputs changed since
`remote-v37`. Once this merges, `remote-v38` is pushed on the merge
commit, and the Remote PC bundles workflow has to finish before the
Release run.

`bun scripts/release-guards.ts` reports: "Release 0.4.19: remote bundle,
telemetry Worker and release metadata are in order." No telemetry Worker
deploy is needed. `bun run check fast` passes locally.

**Not checked on a real Windows PC:** #1989 (Git for Windows' OpenSSH
for remote PCs) and #2016 (Antigravity chat on Windows through the
Restart Manager) ship without their real-device Windows checks, because
the maintainer's Windows test PC is off. The owner accepted releasing
without them. Both will be checked on the real PC when it is back.

The owner approved this release.
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