register as share target
Think it would be grate if there where a method to register as a share target using web manifest.json share polyfill looks at the manifest to see if there is any such config in there, register it in some centralized localStorage origin which communicates throught postMessage+iframe. all sites that you then visit automatically becomes available as a share target then.
https://web.dev/web-share-target
Hi Just pulled an all nigher getting this up and running
Could use a code review and some more work done to support files and reading manifest files or something. as well as a litle refingment and documentations.
But it lets you configure the ShareTargets in a manifest like way for your app.
https://github.com/syonfox/share-api-polyfill
https://syonfox.github.io/share-api-polyfill/docs/ShareTarget.html
Lastly I have not re-implemented all of the share targets yet but have added a few. notably gmail and yahoo