inspectdev / inspect-issues

Issue tracker for Inspect
22 stars 2 forks source link

Keep inspector open after disconnect to allow for automatic reconnect #88

Open samholmes opened 3 years ago

samholmes commented 3 years ago

If you open an inspector session for a safari webpage (or for a web view in an app) and you switch apps on the device, the inspect session may disappear from the AVAILABLE DEVICES sidebar and the session may close/disconnect.

Rather than "unmounting" the DevTools when a connection is disconnected, display a message saying waiting to reconnect and then automatically reconnect after detecting the web view connection again.

The motivation is to be able to catch page loads immediately once an app's web view is reconnected.

auchenberg commented 3 years ago

Great suggestion! Not sure this is technically feasible, as its a new target behind the scenes, but let see.