NearDrop
NearDrop copied to clipboard
Can't receive text and links on Mac
Description: Can't receive text
The operation couldn't be completed. (SwiftProtobuf.BinaryDecodingErrorerror3.)
Steps:
- Copy any text or link
- Click Share, Nearby share
- Click the NearDrop device
- See error on Mac
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 🙏
Just saw this issue is a duplicate of https://github.com/grishka/NearDrop/issues/3
+1 The expected behavior when links are shared should be to open it in the default browser...
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?
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.
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
)