[Android] Incoming voice audio is silent for 1+ minute after joining, then starts on its own

(#4515) Bug Open: Confirmed Priority: P1 mobile voice

Thread

Comment by Charles W (K5CDW)
Follow-up: I filed the root cause upstream with the calling plugin Fluxer uses: hiennguyen92/flutter_callkit_incoming#893 Short version: Fluxer calls setCallConnected() about 200 ms after startCall(), before Android Telecom has created the outgoing Connection (about 360 ms on my Pixel 6 Pro). The plugin drops the early “connected” (CallkitConnection.find(id) ?: return), so the call stays DIALING. Telecom holds audio on the earpiece and overrides the app’s speakerphone requests. After 120 s Telecom times the call out (STATE_TIMEOUT), and only then does the speaker work. Until the plugin is fixed, Fluxer could work around it on its side: call setCallConnected() only after the Connection exists (for example, retry or delay it until Telecom reports the call), or route speaker/earpiece through Telecom while the self-managed call is active. Workaround confirmed on my phone: unregistering Fluxer’s Telecom phone account with adb makes the speaker loud right away. It only lasts until the app restarts.