Skip to content

Fix crash in Wear OS sync when Bluetooth is disabled - #3340

Merged
TheLastProject merged 4 commits into
mainfrom
fix/crash_on_bluetooth_disabled
Sep 27, 2026
Merged

TheLastProject merged 4 commits into
mainfrom
fix/crash_on_bluetooth_disabled

Conversation

@TheLastProject

Copy link
Copy Markdown
Member

Fixes #3338

We change the start order to first start the foreground service, and then kill it if our sanity checks fail. This prevents Android from killing our app using ForegroundServiceDidNotStartInTimeException. It is a bit silly to start a service and then instantly close it, but it prevents users from getting into startup loops.

TODO: See if we can auto-restart on Bluetooth state changes.

We really need to handle Bluetooth better, but right now this will just
spam users who have Bluetooth disabled
@TheLastProject TheLastProject changed the title Fix Wear OS crash when Bluetooth is disabled Fix crash in Wear OS sync when Bluetooth is disabled Sep 27, 2026
@TheLastProject
TheLastProject merged commit 684b23b into main Sep 27, 2026
5 checks passed
@TheLastProject
TheLastProject deleted the fix/crash_on_bluetooth_disabled branch September 27, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash in Bluetooth server when Bluetooth is disabled

1 participant