Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to auto connect to server? #204

Closed
gety9 opened this issue Jan 25, 2024 · 9 comments
Closed

Is it possible to auto connect to server? #204

gety9 opened this issue Jan 25, 2024 · 9 comments

Comments

@gety9
Copy link

gety9 commented Jan 25, 2024

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
Copy link
Owner

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:

Out.mp4

@urbanbur
Copy link

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

@gujjwal00
Copy link
Owner

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 gujjwal00 reopened this Feb 27, 2024
@gujjwal00
Copy link
Owner

@urbanbur which Android version are you running?

@urbanbur
Copy link

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

@pergolafabio
Copy link

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
Copy link
Owner

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
Copy link

that works great!!

@gujjwal00
Copy link
Owner

v2.4.2 is now available with this option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants