snapdrop icon indicating copy to clipboard operation
snapdrop copied to clipboard

Added standalone PWA for iOS 13 and higher

Open Bben01 opened this issue 3 years ago • 19 comments

Moved the manifest.json file to a manifest.js file to allow change based on iOS version.

The default mode is now standalone unless iOS version is less than 13 (the apps works with iOS 13 and higher).

The patch was not tested with iPad versions and Android

Bben01 avatar Mar 29 '21 19:03 Bben01

@RobinLinus can I have your opinion on this?

Bben01 avatar Apr 09 '21 15:04 Bben01

Thanks for working on this! I am also interested in getting the PWA to be standalone, as this allows the app to continue to work when Safari is disabled (I like my smartphone browser-free most of the time).

I think this uses the technique described in this Medium post? It's clever, but do you have any insight into how reliable/portable this is? It would be nice to know that this doesn't rely on some browser glitch that could go away at any time.

I would be able to test with iPad and Android. Is there an easy way for me to test just the client without having to spin up the Docker image?

knuton avatar Jun 12 '21 16:06 knuton

Yes, it uses the technique described in the medium post. For the testing, I don't think you can use something else than the docker image

Bben01 avatar Jun 12 '21 18:06 Bben01

Does not allow it to work without the web browser.

hello-smile6 avatar Jun 12 '21 22:06 hello-smile6

Can we have another version of UWP for this app so that we can share directly files in Windows in the context menu?

the-phuctran avatar Jun 13 '21 03:06 the-phuctran

@hello-smile6 What does that mean?

Bben01 avatar Jun 13 '21 03:06 Bben01

...so that we can share directly files in Windows in the context menu?

How could that be archived? That would be awesome...

fm-sys avatar Jun 13 '21 09:06 fm-sys

That could be a good idea, but I don't think it has to do with the current PR Maybe open a new issue?

Bben01 avatar Jun 18 '21 10:06 Bben01

Hi! How can I install Snapdrop as a standalone PWA on iOS?

I tap on "add to Home Screen" but only creates a bookmark that opens a Safari tab instead of it's own app "window".

edge261 avatar Jul 16 '21 19:07 edge261

Yes @edge261, this is because this pull request hasn't been merged, yet. For now, you can't do anything.

Please, @RobinLinus, can you merge this pull request?

Bellisario avatar Jul 16 '21 19:07 Bellisario

I think we can build a iOS-compatible PWA app, and iframe snapdrop.net inside it, which also makes it PWA-ready. I have built an instance this way, which is compatible with snapdrop.net and snapdrop's 3rd-party android version.

It doesn't solve the problem, but make it possible to achieve what we need without getting docker.

(I built the instance for myself, and make it public here so that others can make use of iOS PWA, and if anyone think that to iframe snapdrop.net is not acceptable, I can delete it or edit it.)

scris avatar Jul 25 '21 05:07 scris

What is the status of this PR?

ikifar2012 avatar Nov 22 '21 22:11 ikifar2012

Still waiting for merging

Bben01 avatar Nov 23 '21 20:11 Bben01

Months later and this has not been merged... :(

We really, really need to install this as a PWA on our iOS devices.

edge261 avatar Jan 13 '22 06:01 edge261

Months later and this has not been merged... :(

We really, really need to install this as a PWA on our iOS devices.

Make the websocket URL be set to wss://snapdrop.net/ . Just clone the repository, git pull this PR, and make a script that automatically pulls changes and builds every about 2 hours.

hello-smile6 avatar Jan 13 '22 22:01 hello-smile6

Months later and this has not been merged... :( We really, really need to install this as a PWA on our iOS devices.

Make the websocket URL be set to wss://snapdrop.net/ . Just clone the repository, git pull this PR, and make a script that automatically pulls changes and builds every about 2 hours.

I know nothing about how to do this haha :(

edge261 avatar Jan 20 '22 20:01 edge261

This PR is really neat! I was going to open it, but his implementation is better. @RobinLinus this increases the usability of Snapdrop on iPhone by a lot. It seems like there is a lot of demand for this PR to be merged, as there is lots of duplicate issues.

1ctinus avatar Jun 10 '22 18:06 1ctinus

@RobinLinus please review and consider merging.

piejanssens avatar Sep 21 '22 18:09 piejanssens

@RobinLinus news?

FoxtrotSierra6829 avatar Nov 15 '22 20:11 FoxtrotSierra6829