connectivity-samples
connectivity-samples copied to clipboard
BluetoothAdapter.startDiscovery() does not work in targetSDKVersion 30
if the target SDK version is set to 30, the startDiscovery() method always returns false and the broadcast listeners are not activated. However, changing it to a lower version, namely 28 fixes the issue.
Location permission is missing for it.