-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Customize ADB commands timeout #259
Comments
Same problem here, would be interested by this option ! |
I'll look into this - seems like we could do this in a non-breaking way. I'm not sure when I can get to it - but I'll put it on my radar. If you are interested in helping I'd be happy to review any PR you'd post. |
To bad that this never found its way to the code... |
The timeout argument would have to be read here: Line 35 in a6e5605
and passed all the way to here: native-run/src/android/utils/adb.ts Line 358 in a6e5605
|
For me, it looks like that:
|
I prepared PR #393 that increases timeout to 15_000 ms, because it works for my case. @gaetanlgce @me-to-you93 @Dexus please let me know in above PR which timeout duration works for you |
I have patched it my own thanks to patch-package so I was able to set it to 30_000 that was working for me |
We have the same problem, the starting of the activity takes longer than 5s when deploying to an emulator. When deploying to a device it takes less than 5s and works fine. For now we patch it with patch-package like @Dexus suggested but a proper fix would be preferable. |
Device offline and device still authorizing errors from ADB should be caught and retried on by native-run - increasing the timeout via environment variable or patch to startActivity just moves the issue slightly further without addressing it. |
Hi,
On old devices, ADB invocation can be quite long to be executed, more than 5 seconds.
It could be useful to allow overriding the value of 5 seconds. (cf issue #5).
Currently, I edit the dist version of the file (https://github.com/ionic-team/native-run/blob/develop/src/android/utils/adb.ts#L469) in my node_modules to force another value of timeout.
Is there a proper way to pass a param for that. I don't use native-run directly but I use the ionic/cordova stack that use native-run. Maybe an environment variable ?
The text was updated successfully, but these errors were encountered: