-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
Use case
Developing for web is often mobile first and as such it would be great to test be able to launch the web app directly on an attached mobile device or emulator running chrome.
This should be possible
flutter run -d chrome-mobile --web-hostname localhost --web-port 5000
Currently my workaround is:
flutter run -d web-server --web-hostname 0.0.0.0 --web-port 5000
But this is lacking the debug connection back to the IDE and the website still has to be opened manually on the device. Also AFAIK firebase auth does not work without registering some local domain and adding a reverse proxy.
Proposal
Using adb it is possible to push a new tab to a connected Android device using the chrome devtools (chrome://inspect/#devices
) and then inspect and debug it.
This connection should also be possible to be forwarded and directly attached to the flutter devtools.