Skip to content

Wi-Fi takeover on iOS USB unplug #24

Description

@Antoinegtir

Why

Today, unplugging an iPhone mid-session kills the flutter run. We want the session to take over via Wi-Fi transparently — the VM service connection should migrate to the wireless endpoint that xcrun devicectl / idevicepair already exposes once the device is paired.

What

  • Detect USB disconnect via DeviceEvent and check whether the same UDID is reachable over Wi-Fi.
  • Re-attach the existing AppSession to the new transport without restarting the app.
  • Surface a discreet snackbar: "iPhone 15 → Wi-Fi".

Out of scope

  • Pairing UX (assume the device is already paired via Xcode/Finder).

Acceptance

  • Pull USB cable during a run — TUI stays alive, hot reload still works over Wi-Fi.
  • Plug back in — transport switches back to USB (lower latency).
  • Logs note both transitions.

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

    iosiPhone / iPad / simulator specifictrackingUmbrella issue tracking a larger featurewifi-takeoverUSB→Wi-Fi failover, pre-pair, mDNS

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions