-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
enhancement: Paired devices should download without asking first #91
Comments
Apart from this being a potential security risk, I think web pages need an active user interaction to be able to download anything so at some point the user needs to click somewhere. As far as I know, if you share files between your own Apple devices or with contacts via AirDrop you also still have to accept the transfer and I will not divert from that behavior. |
In Airdrop, devices on the same account don’t have any confirmation dialog. |
Hm okay, thanks for the info! I will think about it. Not sure about that though as pairing devices is by far not as authenticated as the 2-factor password controlled iDevice authentication. This behavior should at least be opt-in only. |
Yes, maybe when pairing there is a button that says "download without confirmation". So if I wanted bidirectional auto-saving with no dialog I would have to click the checkbox on both devices when pairing. |
This would need to be possible to get disabled by the user anytime and be off by default. I would like to have a GUI to remove the paired devices individually anyways.
So if this will be implemented, it would automatically accept transfer requests (and therefore automatically transfer files) but the download will most likely not start automatically on many browsers. However, as the files are already transferred the "download" would be instant on click. Probably, I would not add this option to the pairing dialog at all to keep it clean (and because it is not possible to implement this for scanning via QR Code without interrupting the user flow). The userflow would then be 1. Pair devices 2. use the settings above once on each device |
@anonymousaga I gave it a try but it was more complex than I thought: As I added and refactored quite a lot of code it would be great if you could thoroughly test the changes on this instance before I merge this into the master branch and main instance:
|
All of the features worked as expected for my android phone + mac (android phone is using app, mac with safari) Interesting phenomena:
Great work on this!! Ill likely donate some when you merge it to the main for going through the effort of refactoring the code! |
Thanks for testing so quickly! Glad it works for the most part already!
This should not be the case. The database is updated as soon as the checkmark is changed and so should be the existing peers.
Yes, that's intended. I decided to change the behavior to this as this makes it coherent with pairing not being able between two browser tabs:
Also, presumably, paired peers will always be shown in up front. When many peers will be shown simultaneously it will just be cleaner when tabs on the same browser are not shown in up front as that is rarely useful.
I'd really appreciate it! All donations are used to pay for the server and the domain. |
This is now fixed. Would you please test again? If everything works as expected I will merge this tomorrow |
…Devices Dialog and a BrowserTabsConnector
I just tested it, and it works as expected. |
After some last fixes this is now stable with |
When I transfer a file, I get a dialog to accept the file. I was wondering if paired devices could automatically download without this dialog to make it easier.
The text was updated successfully, but these errors were encountered: