gujjwal00 / avnc

VNC Client for Android
GNU General Public License v3.0
600 stars 57 forks source link

Is it possible to auto connect to server? #204

Closed gety9 closed 5 months ago

gety9 commented 7 months ago

I use avnc with only 1 server (to connect to vnc server (tigervnc on termux) on my tablet). Is it possible to auto connect to it? If server is on/discovered - simply to connect rightaway (instead of me making the click on it every time)

If it's not possible currently would you consider adding something like "trusted/preferred server" check box to settings server? (so any time it's online avnc will auto connect to it by itself)

gujjwal00 commented 7 months ago

Sorry, that's not possible.

But if you are using a decent enough launcher, you can pin a shortcut to your server on home screen:

https://github.com/gujjwal00/avnc/assets/27951674/ca80bac9-3bbe-4009-a9bf-921a2aad99c3

urbanbur commented 6 months ago

Thanks. My device is a creepy Hikvision doorphone, so its a no-go.

gujjwal00 commented 6 months ago

Well, since this has been requested many times, I am reopening this issue.

The main reason I haven't implemented this is because I was worried about inadvertently locking user out from rest of the app if AVNC keeps re-launching the connection. But I think AVNC can just auto-connect only on fresh app starts (and not on restarts).

Another issue was that what happens if you set two servers to auto-connect. Simplest option is to just pick the first one. More complex option is to remove auto-connect flag from other servers.

gujjwal00 commented 6 months ago

@urbanbur which Android version are you running?

urbanbur commented 6 months ago

I have a DS-KH9510-WTE1 (first generation) running Android 5.

pergolafabio commented 6 months ago

Hi, tested it also here, also hikvision user Those devices are indeed limited, no playstore, we can only sideload apk files to it They have their own launcher, so we are limited there too..

gujjwal00 commented 6 months ago

Please test the following APK: app-debug.zip To enable auto-connect, long press on server => Edit => Advanced => Enable 'Auto-connect when app starts'.

pergolafabio commented 6 months ago

that works great!!

gujjwal00 commented 5 months ago

v2.4.2 is now available with this option.