SnapDrop / snapdrop

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

PWA not working #226

Open fakhrulhilal opened 3 years ago

fakhrulhilal commented 3 years ago

I installed snapdrop as PWA apps on windows 10 (via MS Edge) and iOS 14 (using safari), it doesn't work without proper connection. Suppose I've my local wifi (without internet connection), so I can use it to transfer between iOS and windows 10. It just can't load any resource (html page, js, etc).

RobinLinus commented 3 years ago

Should be fixed in ce8795d. Does this work for you?

notangelmario commented 3 years ago

checked it. it doesn't work for me

Bellisario commented 3 years ago

@notangelmario, the problem is that Snapdrop use the server to create rooms and to send messages to the client on some event occour. If you want to use Snapdrop in your case, you need to create a Snapdrop server in your local network and use it with ip address (don't use localhost or you can't open your Snapdrop in other devices).

Here is all you need for a local env...

fakhrulhilal commented 3 years ago

@Bellisario thank you for informing. To be honest, the actual goal is running completely without internet connection. But looking at your explanation, it requires me to build my own server. As of today, the PWA functionality still doesn't work. It just shows error page. But I'm not sure whether it's caused downloading resource file or communicating to the server for building the channel.

My understanding, PWA allows us to run the app without connecting to server (either local or internet). So literally, it's not possible to be PWA. I think this ticket can be closed. The issue isn't relevant anymore.