szimek / sharedrop

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop
https://www.sharedrop.io
MIT License
10.07k stars 735 forks source link

Is it possible to open sharedrop.io from an Android app, passing a file as an argument #148

Open jpage4500 opened 1 year ago

jpage4500 commented 1 year ago

I've always wanted an easy way to get a log file off of my Android apps.. Android has a 'share via' feature which lets you share a File with another app, but typically that meant using an e-mail app and not everyone has an e-mail app configured on their device.. plus, that has to go through an email server.

My question is -- is there some way I can open sharedrop.io in a browser from my Android app and have it automatically add/share a given file? Maybe it's not possible due to how an app and the Browser communicate.. but looking for ideas on how to simplify the use of sharedrop.

Essentially, I want to have an option in the app to 'share with sharedrop.io'. Click on that and it opens the page and tries to share a given file. The user would just need to open sharedrop.io on another browser in the same network

AlfonsoML commented 6 months ago

This could be possible by using the Share Target API https://developer.chrome.com/docs/capabilities/web-apis/web-share-target

First, it must be a PWA https://github.com/szimek/sharedrop/issues/82