The FitbitGatt API is designed to provide a strong state machine around all Android gatt operations with the aim of making Android BLE development across Android vendors as straightforward and side-effect free as possible.
Mozilla Public License 2.0
57
stars
17
forks
source link
Ensure gatt server start occurs on a background thread #12
We have discovered that at times the gatt db becomes corrupted,
requiring
the user to clear the "bluetooth" or the "Bluetooth Share" application
to prevent ANRs we have moved the gatt server start to a background
thread and will callback success or failure on startup, if your startup
fails, then you should ask your user to clear bluetooth share on their
phone.
Sadly, there is no programmatic way to do this.
changes
Added callback for start failure
Added a handlerthread for internal operations to FitbitGatt as using the gatt server callback could lead to blocking the UI thread
Fixes # [Internal]
description
We have discovered that at times the gatt db becomes corrupted, requiring the user to clear the "bluetooth" or the "Bluetooth Share" application to prevent ANRs we have moved the gatt server start to a background thread and will callback success or failure on startup, if your startup fails, then you should ask your user to clear bluetooth share on their phone.
Sadly, there is no programmatic way to do this.
changes
how tested
We tested on a Pixel 3 XL and a Samsung Galaxy S7