Skip to content

[flutter_inappwebview_android] Add audio intent#2823

Open
PrimozRatej wants to merge 1 commit into
pichillilorenzo:masterfrom
PrimozRatej:master
Open

[flutter_inappwebview_android] Add audio intent#2823
PrimozRatej wants to merge 1 commit into
pichillilorenzo:masterfrom
PrimozRatej:master

Conversation

@PrimozRatej

Copy link
Copy Markdown

Connection with issue(s)

Resolve issue #???

Connected to #???

Testing and Review Notes

This PR adds Android audio capture support for file chooser requests with audio/* accept types.

What changed:

  • detect audio/* accept types in InAppWebViewChromeClient
  • open the audio recorder directly for capture-only audio requests
  • include audio recording as a chooser option when audio is accepted
  • keep audio capture independent from existing camera permission checks used for image/video capture

Suggested review/testing steps:

  1. Run the Android example app.
  2. Open a page with <input type="file" accept="audio/*"> and confirm the chooser includes an audio recording option when supported by the device.
  3. Open a page with <input type="file" accept="audio/*" capture> and confirm the audio recorder opens directly when available.
  4. Open a page with <input type="file" accept="image/*,audio/*"> and confirm both relevant options are available.
  5. Confirm existing behavior for image/* and video/* inputs is unchanged.

Notes:

  • audio capture intent is guarded with intent resolution checks before launch/use
  • image/video capture remains behind the current camera-permission flow
  • audio capture is not blocked by missing camera permission

Screenshots or Videos

Not included yet.

Recommended additions before review:

  • short screen recording showing accept="audio/*"
  • short screen recording showing accept="audio/*" capture

To Do

  • double check the original issue to confirm it is fully satisfied
  • add testing notes and screenshots in PR description to help guide reviewers
  • request the "UX" team perform a design review (if/when applicable)

@arrrrny

arrrrny commented Jun 3, 2026

Copy link
Copy Markdown

Hey @PrimozRatej! We've applied your audio capture support for file pickers (getAudioIntent(), acceptsAudio(), canResolveIntent()) into the zikzak_inappwebview fork — a community-driven fork with active maintenance. Thanks for the contribution! 🚀

https://github.com/arrrrny/zikzak_inappwebview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants