NearDrop icon indicating copy to clipboard operation
NearDrop copied to clipboard

Can't receive text and links on Mac

Open stanleylhs opened this issue 1 year ago • 5 comments

Description: Can't receive text

image

The operation couldn't be completed. (SwiftProtobuf.BinaryDecodingErrorerror3.)

Steps:

  1. Copy any text or link
  2. Click Share, Nearby share
  3. Click the NearDrop device
  4. See error on Mac

stanleylhs avatar Apr 15 '23 05:04 stanleylhs

Just tried the same :)
Would be nice if links would be opened in the default browser and text copied to the clipboard or opened in a default text editor. But I personally would prefer the clipboard solution.

Anyways, thank you very much for this application. I was waiting a long time for a easy sharing between Mac and Android 🙏

mbrammer avatar Apr 15 '23 07:04 mbrammer

Just saw this issue is a duplicate of https://github.com/grishka/NearDrop/issues/3

mbrammer avatar Apr 15 '23 07:04 mbrammer

+1 The expected behavior when links are shared should be to open it in the default browser...

sannidhyaroy avatar Apr 15 '23 17:04 sannidhyaroy

In android it depends how you should share this text/url.

For example if you have a url, how would you share it? Do you create a file on your smartphone, put the url text in the file, save the file and then share the file?

Angelk90 avatar Apr 15 '23 19:04 Angelk90

In android it depends how you should share this text/url.

For example if you have a url, how would you share it? Do you create a file on your smartphone, put the url text in the file, save the file and then share the file?

When you tap on the share button on a browser or basically any webpage on Android, it would send a url to that page through Nearby Share. I think you can replicate what KDE Connect does at this point. It checks whether the received data is a file, a url or a text and then does what's appropriate.

Not sure if this would be helpful for you, but here's the code how Soduto (a macOS KDE Connect Client app) handles the received data packets.

sannidhyaroy avatar Apr 16 '23 06:04 sannidhyaroy

FYI Nearby Share (unlike AirDrop) does support sharing text between devices (received text is indeed copied to the clipboard and NOT saved as a file). I think it's still worth adding this as a feature.

EDIT: Actually, it seems like in some scenarios, AirDrop does support sharing raw text -- however, the plain text becomes a filename with extension .textClipping (i.e. "This is a test"~/Downloads/This is a test.textClipping)

avaidyam avatar Sep 26 '23 22:09 avaidyam