Skip to content

getAudioDevices on IOS might return "BluetoothA2DPOutput" type #484

@EugeneBasalyga

Description

@EugeneBasalyga

Pre-submission Checklist

  • I have verified that the issue occurs with the latest release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Description

On IOS getAudioDevices might return "BluetoothA2DPOutput" type for bluetooth connected audio device while acceptable types are:

enum Type {
    Earpiece = "earpiece",
    Speaker = "speaker",
    Bluetooth = "bluetooth"
}

Example of audioDevices:

[{"name": "AirPods Pro", "type": "BluetoothA2DPOutput", "uuid": "1FFCBE96-30A9-4DDB-A982-F2AF76E31A03"}, {"name": "iPhone", "type": "earpiece", "uuid": "F29D191E-8896-45E8-AF10-6D48C71B8A07"}, {"name": "Speaker", "type": "speaker", "uuid": "A1989806-F574-41A9-BFD4-80123F0CFEFD"}]

Example of selectedDevice:

{"name": "AirPods Pro", "type": "BluetoothA2DPOutput", "uuid": "1FFCBE96-30A9-4DDB-A982-F2AF76E31A03"}

Reproduction Frequency

Not deterministic. Usually happens when you unpair and then pair again your bluetooth device. An issue disappears (returns "bluetooth" type for bluetooth connected audio device) when you select any different audio device.

Software and Device Information

  • Device: Physical device iPhone 14 Pro
  • OS: IOS 18.3.1
  • React Native version: 0.74.2
  • Twilio SDK version: 1.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogInitial triage done, backlog ticket filed for further work.iosAffects the iOS platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions