-
Notifications
You must be signed in to change notification settings - Fork 129
Misuse of mBluetoothAdapter.isMultipleAdvertisementSupported() #67
Comments
I'm wary of adding code to support one specific vendor. The Android documentation explicitly states that isMultipleAdvertisementSupported() should be used to check for advertising support. |
Does it? No it does not. What it does says is https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html#isMultipleAdvertisementSupported() |
Should have included a citation in my original response. It is under getBluetoothLeAdvertiser:
|
@g-ortuno I think @farmazon3000 is right. |
Ok. For BLE Test Peripheral, is this check causing you to not be able to use the tool? |
@scheib Yes. If I can not pass the checking, BLE Test Peripheral will show |
Hi, any conclusion on this subject? |
Actually, it's not required to support multiple advertisement for Android device to act as peripheral role. Check the official example. I have a device which returns false with |
I'm convinced. Feel free to send a CL to change this. |
THANKS A LOT, you made my day |
In https://github.com/WebBluetoothCG/ble-test-peripheral-android/blob/master/app/src/main/java/io/github/webbluetoothcg/bletestperipheral/Peripheral.java there is:
And this is misuse of
isMultipleAdvertisementSupported
, check this AltBeacon/android-beacon-library#266:The text was updated successfully, but these errors were encountered: