snapdrop icon indicating copy to clipboard operation
snapdrop copied to clipboard

[Third-Party-App] I created iOS shortcuts to send items directly from the share menu

Open schlagmichdoch opened this issue 2 years ago • 0 comments

To be as convenient and simply as Apples AirDrop is Snapdrop must be able to share files and text directly from a devices share menu. There is an API for PWAs that must be further implented (see #525). Sadly this will only help Android users. I was looking for a solution for a while to send files easily between my iPhone and Laptop and I finally found it:

Snapdrop Via iOS Shortcuts

Every Apple device has an app called "Shortcuts" preinstalled which gets more and more attention every year. Through a simple link you can install shortcuts that are able to get input data directly from the devices share menu.

After fiddling around a bit I found out that I can implement an complete front end and use the shortcuts input data by writing it directly into an div data-attribute as json.

Send an item using Snapdrop Via iOS Shortcuts

The workflow is as simple as with AirDrop:

  1. Open the item, then tap the Share button, Share, the More options button, or another button that displays the app’s sharing options.
  2. Tap share file(s) via Snapdrop in the row of share options
  3. Wait for the browser tab to open and tap the device name of a Snapdrop user on the same network.

Installation

There is a total of three shortcuts to send content via Snapdrop directly from the share menu:

  1. share images and files directly from share menu
  2. share texts and URLs of any kind directly from share menu
  3. share files and folders as ZIP archive directly from share menu

Install the shortcuts by following the links above with your iOS device and click Get Shortcut Upon Installation you can also change the domain if you are using another snapdrop instance or host your own

Code

The code used to implement the local front end is hosted here: https://github.com/schlagmichdoch/snapdrop-via-ios-shortcuts

Third-Party Apps

I really hope this is helpful to anyone and would love to see it added to the list of third-party apps

schlagmichdoch avatar Nov 09 '22 15:11 schlagmichdoch