twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
163 stars 50 forks source link

VIDEO-7526: Android 12 bluetooth permissions support #102

Closed afalls-twilio closed 2 years ago

afalls-twilio commented 2 years ago

Description

Added support for Android 12. This means the new functionality is as follows... 1) If AudioSwitch is used on an Android 12 device and the BLUETOOTH_CONNECT permission has not been granted, it will no longer crash and instead just fail to use bluetooth 2) If AudioSwitch is used on an Android 12 device and BLUETOOTH_CONNECT permission has been granted, it will work appropriately 3) If AudioSwitch is used on an Android 11 or earlier device, it will behave as it did before.

Also got test cases to run again on Android 12.

Breakdown

Validation

Additional Notes

Changes to Ahoy application are in a different PR.

Submission Checklist

mmartikainen commented 2 years ago

I added @kbagchiGWC as reviewer for awareness.

SeniorZhai commented 2 years ago

Can you push the release version as soon as possible, my app uses this library and always has this crash on Android 12. Thanks !