szimek / sharedrop

Easy P2P file transfer powered by WebRTC - inspired by Apple AirDrop

Home Page:https://www.sharedrop.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jpage4500 opened this issue · comments

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

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 #82