Skip to content

Conversation

@The-First-King
Copy link

Why this solves the problem:

  1. The Interruption: When we pair with a car, the car system might disconnect A2DP for 2 seconds to negotiate keys or switch profiles.

  2. Old Behavior: Your app saw "Disconnect" → Immediately called disable(). The car tried to reconnect 2 seconds later, but the phone's Bluetooth was already dead.

  3. New Behavior: Your app sees "Disconnect" → Starts a 20-second timer. The car reconnects 2 seconds later → Your app sees "Connected" → Cancels the timer. Bluetooth stays on.

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.

1 participant