diag(ios audio): setSpeaker returns actual output port + category/mode + native marker

Telemetry only showed 'override didn't throw', and the web __BUILD tag can't tell
native binaries apart, so we couldn't see WHERE iOS actually routed the audio or
which plugin build ran. setSpeaker now resolves with the real currentRoute output
port (Receiver/Speaker/Bluetooth), the live AVAudioSession category/mode/options,
and a native-build marker (1.0.2-diag) so the route log is unambiguous.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-21 19:22:01 +05:30
parent 1920345ecd
commit 36d51ba40d
2 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "audio-route",
"version": "1.0.1",
"version": "1.0.2",
"description": "iOS earpiece/speaker audio route toggle for Biz Connect",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",