Comments (7)
Thanks for the detailed report @seancrowe.
Ideally, it should work both ways. But there were some changes in Android 12 related to clipboard access, and those might be the issue here. I did some limited testing only with an emulator.
I will take a closer look.
from avnc.
I can't find a real Android 12 device for now. But I tried again with emulator and copy-past works reliably in both directions.
Just to give more context, this is how clipboard access works in AVNC:
- Host -> Client: When text is received from host, it is immediately placed on Android's clipboard.
- Client -> Host: Because AVNC will be in background when you copy some text in some other app, It will check the clipboard when it comes to foreground (i.e.
onResume
). If text is found on clipboard, it will be sent to the server. On Android 12, you will sometimes see a toastAVNC pasted from you clipboard
when AVNC comes to foreground.
Can you please test the following:
- Copy some text on Android before connecting to server. Now connect and check if text is properly pasted on server.
- After connecting in AVNC, switch to another app (e.g. Messaging), copy something, and switch back to AVNC. Check the clipboard on server. Disconnect from server by pressing Back. Tap on top Address/URL bar in AVNC, and try to paste the text.
from avnc.
Any update @seancrowe?
from avnc.
Because I cannot reproduce the issue, and there is no progress here, I am closing this.
But, feel free to reopen if you want.
from avnc.
@gujjwal00
Sorry, I was busy. Thanks for getting back to me.
Indeed I did your test:
- Copy some text on Android before connecting to server. Now connect and check if text is properly pasted on server.
-- Works, this works - After connecting in AVNC, switch to another app (e.g. Messaging), copy something, and switch back to AVNC. Check the clipboard on server. Disconnect from server by pressing Back. Tap on top Address/URL bar in AVNC, and try to paste the text.
-- This also works
So it only works when I copy before launching the VNC session.
The weird thing is I can have a VNC session launched and another app open side by side, and the copy/paste does not work from Android -> Host.
At least now I have a workaround. I don't do a lot of copy/paste
from avnc.
Yes, AVNC doesn't actively listen for clipboard changes. If you are using multiple apps side-by, try tapping on AVNC after copying from other app.
It is possible to register a clipboard listener, but I didn't want to read clipboard while in background due to privacy concerns.
from avnc.
This should be fixed now in 71f84b5
from avnc.
Related Issues (20)
- Weblate errors HOT 1
- still AltGr / ISO-L3 key problems HOT 12
- Color problem HOT 3
- Feature request: Allow rearranging servers on list HOT 2
- Feature: import/export settings HOT 1
- Feature request: Turn off video completely, only keyboard/remote control mode as a server option. HOT 11
- Bug: cannot translate text HOT 3
- Bug: black screen sometimes HOT 9
- Clipboard not syncing with TigerVNC 1.10.0 HOT 12
- The client doesn't send cedilla to the server. HOT 7
- loads Black screen HOT 4
- Hi HOT 4
- Feature request: Open app and connect to specific address through ADB HOT 1
- Feature request: Remap modifiers so that Command and Option can both be pressed on macOS HOT 12
- A way to disable clipboard? HOT 7
- I can't insert the "รง" HOT 1
- Feature request: Touchpad mouse "deadzone" HOT 1
- Feature Request: Lock zoom / disable pinch to zoom
- Feature request: 100% zoom stopwatch HOT 1
- Middle click + drag ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avnc.