Is it possibly to run flutter app on device without connecting to computer, something like expo for Flutter?
assuming that you're using an Android device, it should be possible if you pre-connect the device to the computer wirelessly after some initial setup provided here: https://developer.android.com/studio/command-line/adb#wireless
You can use adb wifi plugin. Or else you can use these commands(Which is mentioned in here). You can write a *.bat file with these commands.
adb tcpip 5555
adb connect xxx.xxx.xxx.xxx:5555 // IP address of your device xxx.xxx.xxx.xxx:5555
echo finished - unplug USB connection
pause
Note: This is only for Android devices
Set the target device to listen for a TCP/IP connection on port 5555.
adb tcpip 5555
Disconnect the USB cable from the target device.
Find the IP address of the Android device. For example, on a Nexus device, you can find the IP address at Settings > About tablet (or About phone) > Status > IP address. Or, on a Wear OS device, you can find the IP address at Settings > Wi-Fi Settings > Advanced > IP address.
Connect to the device by its IP address.
adb connect device_ip_address
Confirm that your host computer is connected to the target device:
$ adb devices List of devices attached device_ip_address:5555 device You're now good to go!
If the adb connection is ever lost:
Or if that doesn't work, reset your adb host:
adb kill-server Then start over from the beginning.
Source of information.
https://plugins.jetbrains.com/plugin/7856-adb-wifi/
https://android.jlelse.eu/connect-android-device-with-wifi-within-android-studio-3b1bc00c1e17
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With