Closed boyks closed 3 years ago
It's an Android bug. It happens on some phone but not all.
The workaround is to call createBond() instead of connectGatt() if the device is not bonded yet.
In the example app of this library, this is done for the Contour glucose meter.
Any progress on this?
Yeah. Tried implementing my own stack based on your example, and indeed calling createBond() fixes the problem, but not calling it instead connectGatt(), but just before it, then listening to bond changes.
Also have limited this workaround to Google (Pixel) and Samsung devices, not sure though if it's enough - will wait for responses from users.
Device: Pixel 4a OS: Android 12
When connecting to the Nonin 3230 device for the first time, I need to confirm pairing 2 times on the system pop-up dialog. As far as I understand, the Nonin device requires bonding for a secure connection, thus requesting pairing with the device. But why 2 same dialogs?