Skip to content

Android BLE: a peer that switches Bluetooth off stays a neighbour for over a minute #513

Closed

Description

@kivtxs

Seen in the v0.28 device test (Infinix NOTE 12 on Android 13, Seeker on Android 15). This is not a regression.

When the other phone switches Bluetooth off:

The links close with status 0, which the facade treats as a clean disconnect ("peer likely returns, deviceId mapping kept"). So blePeerLost waits for the reconnect attempts to run out. Messages sent meanwhile are retried, and they deliver when the peer returns (4/4 each way in the test).

The open question is whether a clean disconnect with no live link left, and no reconnect within N seconds, should report the peer lost sooner. Apps show "nearby" from neighbor_lost. iOS behaviour for the same case is untested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions