react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

Maybe the didChangeAudioRoute listeners callback should get a name returned by getAudioRoutes

Open nagyszili opened this issue 3 years ago • 7 comments

Bug report

  • [ ] I've checked the example to reproduce the issue.

  • Reproduced on:

  • [ ] Android

  • [x] iOS

Description

Value returned by getAudioRoute() :

[ { name: 'iPhone Microphone', type: 'Phone' },
  { name: 'Speaker', type: 'Speaker' },
  { name: 'Venue', type: 'Bluetooth' },
  { name: 'HG00595', type: 'Bluetooth' } ]

Selecting an audio route on the call screen triggers the didChangeAudioRoute listener but the value what I get in case selecting the Venue is { output: 'BluetoothHFP', reason: 3 } in case selecting the HG00595 is { output: 'BluetoothHFP', reason: 3 } in case selecting the iPhone is { output: 'Receiver', reason: 3 } in case selecting the Speaker is { output: 'Speaker', reason: 4 }

The output string value shouldn't be the name of the selected audioRoute, just like how is returned by the getAudioRoute ?

image

Versions

- Callkeep: 4.3.2
- React Native: 0.64
- iOS: 15.2
- Android:
- Phone model: 6s Plus, 12

nagyszili avatar Feb 23 '22 10:02 nagyszili

Yes, you are correct. As it is now, it makes it impossible to support multiple BT device selection from the app UI.

rcidt avatar Oct 05 '22 00:10 rcidt

Hi I am facing the same issue. Any solution found for the same?

MeghaPawar2410 avatar Dec 15 '22 05:12 MeghaPawar2410

Well I've created a pull request back then to fix this issue but its still open

nagyszili avatar Dec 15 '22 07:12 nagyszili

any update on this ?

tsminh avatar Feb 14 '23 03:02 tsminh

We were able to resolve it by iOS native code only

MeghaPawar2410 avatar Feb 15 '23 05:02 MeghaPawar2410

@nagyszili Are you able to switch between connected bluetooth devices? How do you change the default last-in bluetooth output selection rule? To simplify are you able to switch from { name: 'Venue', type: 'Bluetooth' } to { name: 'HG00595', type: 'Bluetooth' } in your case?

Romick2005 avatar Jul 21 '23 09:07 Romick2005

when plan merge this ?

iim-norse avatar Feb 20 '24 14:02 iim-norse