-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oppo not show Bonding message #570
Comments
To be more exact, The OS is ColorOS 14.0 |
Hello, We don't have any Oppo devices. Could you please share the log from |
Hi, I tried that and several other options at the native level, finally I created a method right at the time of pairing where I do the following and it works in the part of .connect(device)
?.before { device ->
if (device.bondState == BOND_NONE) {
feintBluetoothDeviceDiscovery(device) /
} else {
// [...]
}
// [...]
} @SuppressLint("MissingPermission")
private fun feintBluetoothDeviceDiscovery(device: BluetoothDevice) {
val btAdapter = BluetoothAdapter.getDefaultAdapter()
GlobalScope.launch {
delay(1000)
btAdapter.cancelDiscovery()
delay(100)
device.createBond()
}
} |
Are you are of the following method: Android-BLE-Library/ble/src/main/java/no/nordicsemi/android/ble/BleManager.java Lines 648 to 651 in 5627275
It delays service discovery after successful connection. Do you request pairing from the device, of from Android? If you have an iOS app, there's no API to request pairing from there. You have to request it from the device side, or try to read/write an attribute with permission encrypted or MITM. The above method allows to delay service discovery until you'll get the pairing request from the device side. |
Only use the library in Android. In some tests I did what you told me, and it didn't work either, doing what I put above was the only thing that worked |
Hello.
First of all, thank you for the library, I have been using it for a long time and it works better and better.
I have a problem with a device model, specifically an Oppo with Android 14, which, when the Android authorization message has to appear for the user to accept, does not show it and I don't know why.
I have tried other devices, Samsung, Xiaomi, Huawei, LG, Acer... and they all work but not this one.
Specifically, as a curiosity, I have tried different versions of the library and with 2.5.1, if the message appears, with the following ones and not with the last one, and I am interested in using the latest version because I have seen that in the others devices works much better for me.
Do you know any solution to this? Thank you
The text was updated successfully, but these errors were encountered: