Skip to content

Flutter Devices: Add 'chrome on mobile' as a new deployment target #71678

@dkbast

Description

@dkbast

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: debuggingDebugging, breakpoints, expression evaluationc: new featureNothing broken; request for a new capabilityplatform-androidAndroid applications specificallyplatform-iosiOS applications specificallyplatform-webWeb applications specificallyteam-webOwned by Web platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy