Failed to connect: Bluetooth - Connection lost -- implement a retry mechanism?
Hey Sylvia!
A lot of times when trying to use ShareToInputStick to send text to an InputStick, an error appears after tapping on the device to use:
Failed to connect
Bluetooth - Connection lost
When tapping on the device again, it works ~99% of the time and in very rare cases requires a 3rd try.
The occurrence of this error is not explicitly reproducable, but as it happens that often, it won't take long to reproduce.
It occurs with different InputStick models:
- InputStick BT5-C (USB type C) -- 3 different devices, all on firmware 1.15 (latest)
- InputStick BT5-A (USB type A) -- 1 device on firmware 1.14 (latest)
When using the Keepass2Android InputStick plugin, the only issue that ever occurred (and still occurs, but not every time!) is that the plugin is not connecting to the InputStick at all (no matter which model). This can only be fixed by disabling and re-enabling bluetooth on my phone (Google Pixel 9 Pro XL, but it was the same with a Google Pixel 8 Pro and older models, all running the latest Android release at the time). After having cycled the bluetooth state, the KP2A InputStick plugin always works fine (until next time I try to use it).
As 1-2 simple retries in ShareToInputStick fixes the issue for me, would you consider implementing a silent retry loop mechanism (with 3 tries total by default), so the app would only show an error when all of the tries failed?
Thanks in advance and please keep up the great work! 😊👌
Cheers, Wolfram