Skip to content
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

Expose BluetoothGattCallback#onServiceChanged #857

Open
gabrielgarciagava opened this issue Aug 9, 2024 · 0 comments
Open

Expose BluetoothGattCallback#onServiceChanged #857

gabrielgarciagava opened this issue Aug 9, 2024 · 0 comments

Comments

@gabrielgarciagava
Copy link

gabrielgarciagava commented Aug 9, 2024

Starting from API 31, there is a new method on the BluetoothGattCallback called onServiceChanged
https://developer.android.com/reference/android/bluetooth/BluetoothGattCallback#onServiceChanged(android.bluetooth.BluetoothGatt)

We need to know when this callback is called since it means the Gatt cache is out of sync and we need to rediscover the services by calling BluetoothGatt#discoverServices. Right now, when it happens, we cannot connect to the services anymore and it is not possible to know why.

Place that should respond to this new callback: https://github.com/dariuszseweryn/RxAndroidBle/blob/master/rxandroidble/src/main/java/com/polidea/rxandroidble2/internal/connection/RxBleGattCallback.java#L38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant