Skip to content

Commit 2c1760d

Browse files
authored
Validation added in iOS
Validation added for bluetooth headphones as it was returning BluetoothA2DP as a route. Tested in Unity 2019.1
1 parent 1b7d330 commit 2c1760d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/Plugins/iOS/DetectHeadset.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ bool _Detect() {
1111
return true;
1212
if ([[desc portType] isEqualToString:AVAudioSessionPortBluetoothHFP])
1313
return true;
14+
//It was displaying this route for bluetooth wireless headphones.
15+
//Tested with Unity 2019.1
16+
if ([[desc portType] isEqualToString:AVAudioSessionPortBluetoothA2DP])
17+
return true;
1418
}
1519

1620
return false;
1721

1822
}
1923

20-
}
24+
}

0 commit comments

Comments
 (0)