aakash-pamnani / ADB-QR

A vscode extension to connect your android phone wirelessly to PC.
https://marketplace.visualstudio.com/items?itemName=AakashP.adb-qr
MIT License
19 stars 2 forks source link

can't connect on Windows 10 #2

Open tksoh opened 2 years ago

tksoh commented 2 years ago

Not able to connect to Realme 6 with Android 11. Using VS Code 1.68.1 on WIndows 10.

FYI, I have been able to connect using ADB (pair and connect), and wanted to look for an easier way to connect like that on Android Studio.

aakash-pamnani commented 2 years ago

Is there any error showing on ?

tksoh

tksoh commented 2 years ago

I tried again a few time today, and sometime Connect with QR code is able to connect to the same phone, but sometime not successful with the error message "ADB QR: TimeOut: No Device Found". Are there other log that will provide more details?

tksoh commented 2 years ago

Sometimes I am also getting another error where the QR code does not show up, with the message saying "Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.."

When I close the project and restarted VS code (with no project loaded), then QR code connect seem to work more reliably. I'm not if that has anything to do with each other.

One other thing I noticed is that, when I disconnected and unpaired the phone then redo the to QR code connection, the 'Pair with QR code code' function on the phone would somehow be greyed out (which usually implies the function has been disabled); although it will still let me click and bring up the QR code scanner, but the QR code connect would subsequently fail.

aakash-pamnani commented 2 years ago

I tried again a few time today, and sometime Connect with QR code is able to connect to the same phone, but sometime not successful with the error message "ADB QR: TimeOut: No Device Found". Are there other log that will provide more details?

Did you turn off your mobile data before connecting? because I have noticed when mobile data is enabled it does not connect every time.

aakash-pamnani commented 2 years ago

Sometimes I am also getting another error where the QR code does not show up, with the message saying "Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state.."

When I close the project and restarted VS code (with no project loaded), then QR code connect seem to work more reliably. I'm not if that has anything to do with each other.

One other thing I noticed is that, when I disconnected and unpaired the phone then redo the to QR code connection, the 'Pair with QR code code' function on the phone would somehow be greyed out (which usually implies the function has been disabled); although it will still let me click and bring up the QR code scanner, but the QR code connect would subsequently fail.

# please send the error logs from vscode dev tools opened project has nothing to do with plugin. and don't know about the phone issue , never happend with me.

tksoh commented 2 years ago

Did you turn off your mobile data before connecting? because I have noticed when mobile data is enabled it does not connect every time.

I will give it a try later.

please send the error logs from vscode dev tools

How do I open the dev tools. Sorry I am new to vs code.

aakash-pamnani commented 2 years ago

Did you turn off your mobile data before connecting? because I have noticed when mobile data is enabled it does not connect every time.

I will give it a try later.

please send the error logs from vscode dev tools

How do I open the dev tools. Sorry I am new to vs code.

ctrl+shift+p developer: toggle developer tools

Jaimis2070 commented 2 years ago

use as a wifi router, if both gadget and system are connected with the same port then it will run

otherwise, u face some issues!!

tksoh commented 2 years ago

@Jaimis2070 not really sure what you mean, but the phone and PC has always been connected to the same wifi point. Turning off the mobile data doesn't fix the problem either. And to be honest, even if it does, I'm not sure I want to go through that much trouble.

Anyway, I've kind of given up on this, and switched back to using adb instead. It's more hassle, but at least it always works. And not having to face the uncertainty/frustration at least give me the peace of mind.

fengcai commented 2 years ago

face the issue too, and I turned off mobile data, show 'ADB QR: TimeOut: No Device Found' xiaomi mobile, anroid 11 windows 10

Jaimis2070 commented 2 years ago

Yaah ...you take kore then 30 sec so

On Sat, 3 Sep, 2022, 7:33 am fengcai, @.***> wrote:

face the issue too, and I turned off mobile data, show 'ADB QR: TimeOut: No Device Found'

— Reply to this email directly, view it on GitHub https://github.com/aakash-pamnani/ADB-QR/issues/2#issuecomment-1236025117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY42O4ZHW5WSDV6WFUNQJZLV4KWWHANCNFSM5ZWVYC3A . You are receiving this because you were mentioned.Message ID: @.***>

aakash-pamnani commented 2 years ago

face the issue too, and I turned off mobile data, show 'ADB QR: TimeOut: No Device Found' xiaomi mobile, anroid 11 windows 10

You have to scan the qr within 30 sec, Some time it does not work in first attempt but second works fine. Will try to fix this.