GithubHelp home page GithubHelp logo

Comments (7)

gujjwal00 avatar gujjwal00 commented on May 19, 2024

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.

gujjwal00 avatar gujjwal00 commented on May 19, 2024

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 toast AVNC pasted from you clipboard when AVNC comes to foreground.

Can you please test the following:

  1. Copy some text on Android before connecting to server. Now connect and check if text is properly pasted on server.
  2. 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.

gujjwal00 avatar gujjwal00 commented on May 19, 2024

Any update @seancrowe?

from avnc.

gujjwal00 avatar gujjwal00 commented on May 19, 2024

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.

seancrowe avatar seancrowe commented on May 19, 2024

@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.

gujjwal00 avatar gujjwal00 commented on May 19, 2024

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.

gujjwal00 avatar gujjwal00 commented on May 19, 2024

This should be fixed now in 71f84b5

from avnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.