RobinLinus / snapdrop

A Progressive Web App for local file sharing
https://snapdrop.net
GNU General Public License v3.0
17.8k stars 1.63k forks source link

File transfers and buddy detection using Peer to Peer Wifi or BLE #323

Open Triskae opened 3 years ago

Triskae commented 3 years ago

Hi guys, great job for this app, I use almost every day to transfer files from and to my iPhone to and from my Windows computer!I planned to make an app to take advantage of Direct Wifi and P2P Network to detect and transfer files between devices.Do you think the Chrome API could do such a thing? Detect nearby even if they are not in the same network?

Pretty much like on MacOS and iPhone. I know they have different brand wifi cards, but I don't know if it's something that is exclusive to Broadcom wifi card, or if it's something that can be implemented with a "regular" wifi card? (Realtek, Atheros, Intel, etc.)

Thanks all !

Bellisario commented 3 years ago

@Triskae, thank you for your suggestion! The problem is that Snapdrop is just a site and what are you saying, for my experience, can be only made by a software that have a complete bluetooth and wifi access. Here is a way to do this with javascript (in a site), but the problem is that is a Chrome exclusive api, not available for other browsers like Safari and maybe (because I don't know) Firefox.

My opinion is that to do this properly, a site is not the right way, but this is a very very good thing to be implemented in a program and/or in an app...

Triskae commented 3 years ago

@Bellisario thanks a lot for your reponse !! I understand the problem, maybe a ELectron app of the website could access the right API, to communicate with Wifi and BLE !

Bellisario commented 3 years ago

Yes @Triskae, this is perfect for Electron!

P.S.: I found that this api is a Chrome experiment, that is only available by a flag, but you can enable it on Electron without user action and you can also have access to all Node.js libraries that can help you or that are apis not available on a simple site.

Triskae commented 3 years ago

Thanks a lot for all those informations !!