From d2cf678491cf41f5449776ffbc701c0083ccea60 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 5 May 2026 09:20:01 -0500 Subject: [PATCH] Fix sing-to-Blobbi mic access on Android and preview playback on iOS The sing action uses getUserMedia + MediaRecorder, which in a browser is gated only by the standard web mic prompt. In Capacitor's Android WebView it additionally requires the RECORD_AUDIO permission to be declared in AndroidManifest.xml; without it the WebView rejects with NotAllowedError and no system prompt is ever shown, so tapping record silently fails on the Android app while working fine in the browser. Also add MODIFY_AUDIO_SETTINGS, which some devices require for the echoCancellation / noiseSuppression / autoGainControl constraints that InlineSingCard passes to getUserMedia. Separately, reorder AUDIO_MIME_CANDIDATES to prefer audio/mp4/aac over audio/webm;codecs=opus. iOS WKWebView cannot decode WebM/Opus in an