2023-04-12

Updates to React Native SDK (v3.8.0) - Introduced new methods to the NotificationService and upgraded the WebRTC version to a recent version that contains improvements and bug fixes. Additionally, added Bluetooth permissions to support connecting Bluetooth headphones to Android 12 devices.

React Native SDK

3.8.0

Features

  • Introduced new methods and event handlers to the NotificationService that allow participants to subscribe to and unsubscribe from the preferred notifications.

  • Upgraded the WebRTC version to a recent version that contains improvements and bug fixes. The previously used version contains serious security vulnerabilities that can make your application susceptible to remote code execution, and can potentially give an attacker access to your application’s private data.

Changes

Added Bluetooth permissions to support connecting Bluetooth headphones to Android 12 devices. To use Bluetooth features in your application on Android 12 or later, you now need to request the BLUETOOTH_CONNECT permission, either in your React Native application or on the Android side, as in the following examples:

const bluetoothConnectGranted = await PermissionsAndroid.request(
          PermissionsAndroid.PERMISSIONS.BLUETOOTH_CONNECT,
          {
              title: "Bluetooth connect",
              message: "This application requires the bluetooth connect permission in Android 12 and later.",
              buttonNeutral: "Ask Me Later",
              buttonNegative: "Cancel",
              buttonPositive: "OK"
          }
      );
if (ContextCompat.checkSelfPermission(this@MainActivity, Manifest.permission.BLUETOOTH_CONNECT) == PackageManager.PERMISSION_DENIED) 
               {
                   if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) 
                   {
                       ActivityCompat.requestPermissions(this@MainActivity, arrayOf(Manifest.permission.BLUETOOTH_CONNECT), 2)
                       return
                   }
               }