#sharetarget โ Public Fediverse posts
Live and recent posts from across the Fediverse tagged #sharetarget, aggregated by home.social.
-
#ProgressiveWebApps (#PWAs) can act as a #shareTarget for other #apps on #Android.
https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target
So when I added this feature to my app, it seemed fine to call the url `/share`.
And when I saved them to the #database I just went with it and named the table `shares`.
But here's the thing; I have my app installed on my phone too. I use the `share` feature to "post" to my website.
So, now my posts go in the `shares` table.
-
โ๏ธ Add Link to Trello on Android via Share Menu
I have been collecting interesting links in various Trello boards for many years ... and now have found a new and better approach to share them from Android. Thank you @snarfed.org for giving me the initial ignition.
https://kiko.io/post/Add-Link-to-Trello-on-Android-via-Share-Menu/
-
The #PWA #shareTarget #API has been around for like five years now and it's still not supported by #firefox or #safari
https://developer.mozilla.org/en-US/docs/Web/Manifest/share_target
I wonder why. Don't y'all "share" things from your OS? I use it all the time on #Android. Maybe iOS users are just used to copy/pasting urls?
-
I've been trying to implement the #shareTarget API in my #PWA for years now and I'm *so close* to being able to accept files from a share (at least from #Chrome #Android) that I can *taste* it!!!
In manifest.json I set my `method` to "POST" and `enctype` to "multipart/form-data", but when I share to my app it just GETs the page with no POST or even querystring params.
I could try disabling the GET response and see what happens...
-
What's confusing to me is the "challenge" part. Apparently the server needs to provide it, but when? Should I send it along with every page I want to make authenticated form posts from? Or is this something I should do once, in a login form, and then send to the server to persist in a database?
Will this work for my #PWA #shareTarget posts? ๐ค