Search code examples
androidquickblox

Bluetooth support in QuickBlox webRtc sdk Android


I am using Quick Blox android Sdk for calling application .Calling is working fine but i got and issue . When my device is connected to bluetooth nothing happening on bluetooth neither the mic nor the speaker. I have searched the documentation of the sdk but found nothing there about bluetooth support .Does anyone knows how do i overcome this problem. I am currently using verion 3.2.0.


Solution

  • This is possible with QuickBlox Android SDK. The sample code, however, is not directly in the master of the QuickBlox repository, but in this branch.

    There are only 2 differences to the repository master. Firstly, the bluetooth permissions in the AndroidManifest.xml

    <uses-permission android:name="android.permission.BLUETOOTH" />
    

    But the really interesting code is in the class CallActivity.

    With these changes, the Bluetooth connection worked for me with the Quick-Blox SDK 3.2 and 3.3.

    You can also see the originall answer to my question here.

    Regards